Minor tweaks

This commit is contained in:
Birunthan Mohanathas 2013-08-17 11:16:01 +03:00
parent cd140ff0f6
commit b0c4f83424

View File

@ -136,7 +136,7 @@ void Logger::WriteToLogFile(Entry& entry)
(entry.level == Level::Warning) ? L"WARN" :
(entry.level == Level::Notice) ? L"NOTE" :
L"DBUG";
std::wstring message = levelSz;
message += L" (";
message.append(entry.timestamp);
@ -145,9 +145,9 @@ void Logger::WriteToLogFile(Entry& entry)
message += L": ";
message += entry.message;
message += L'\n';
#ifdef _DEBUG
_RPT0(_CRT_WARN, StringUtil::Narrow(message).c_str());
_RPTW0(_CRT_WARN, message.c_str());
if (!m_LogToFile) return;
#endif