Files
core/ASCOfficeXlsFile2/source/XlsFormat/Logging/Logger.cpp
Elen.Subbotina 17009616ce XlsFile2 фиксы ошибок по результатам тестирования
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64173 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:24:21 +03:00

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;
}