Files
core/ASCOfficeXlsFile2/source/XlsFormat/Logging/Log.cpp
Elen.Subbotina cf9d55e913 XlsFile2 bug 13912
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63941 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:21:15 +03:00

55 lines
825 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
}
}; // namespace Log