mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64173 954022d7-b5bf-4e40-9824-e11837661b57
34 lines
559 B
C++
34 lines
559 B
C++
|
|
#include "Logger.h"
|
|
|
|
#include <iostream>
|
|
#include <sstream>
|
|
#include <time.h>
|
|
|
|
Logger::Logger(const std::string& log_file)
|
|
: m_log(log_file.c_str())
|
|
{
|
|
}
|
|
|
|
|
|
Logger::~Logger()
|
|
{
|
|
}
|
|
|
|
void Logger::writeLine(const std::string& type, const std::string& str)
|
|
{
|
|
std::cout << type << ": " << str << std::endl;
|
|
}
|
|
|
|
void Logger::writeLine(const std::wstring& type, const std::wstring& str)
|
|
{
|
|
std::wcout << type << L": " << str << std::endl;
|
|
|
|
}
|
|
Logger& Logger::getLogger()
|
|
{
|
|
static Logger logger("OfficeXlsFile.log");
|
|
return logger;
|
|
}
|
|
|