Files
core/ASCOfficeXlsFile2/source/XlsFormat/Logging/Log.cpp
Elen.Subbotina 2ebf7beee9 XlsFile2 linux build prepare
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64101 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:23:05 +03:00

55 lines
807 B
C++

#include "Log.h"
namespace Log
{
void info(const std::string& message)
{
#ifdef _DEBUG
Logger::getLogger().writeLine(" Info", message);
#endif
}
void event(const std::string& message)
{
#ifdef _DEBUG
Logger::getLogger().writeLine(" Event", message);
#endif
}
void message(const std::string& message)
{
#ifdef _DEBUG
Logger::getLogger().writeLine(" Message", message);
#endif
}
void warning(const std::string& message)
{
#ifdef _DEBUG
Logger::getLogger().writeLine(" WARNING", message);
#endif
}
void warning(const std::wstring& message)
{
#ifdef _DEBUG
Logger::getLogger().writeLine(L" WARNING", message);
#endif
}
void error(const std::string& message)
{
#ifdef _DEBUG
Logger::getLogger().writeLine(" !!ERROR", message);
#endif
}
}