mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Minor tweaks
This commit is contained in:
parent
cd140ff0f6
commit
b0c4f83424
@ -136,7 +136,7 @@ void Logger::WriteToLogFile(Entry& entry)
|
|||||||
(entry.level == Level::Warning) ? L"WARN" :
|
(entry.level == Level::Warning) ? L"WARN" :
|
||||||
(entry.level == Level::Notice) ? L"NOTE" :
|
(entry.level == Level::Notice) ? L"NOTE" :
|
||||||
L"DBUG";
|
L"DBUG";
|
||||||
|
|
||||||
std::wstring message = levelSz;
|
std::wstring message = levelSz;
|
||||||
message += L" (";
|
message += L" (";
|
||||||
message.append(entry.timestamp);
|
message.append(entry.timestamp);
|
||||||
@ -145,9 +145,9 @@ void Logger::WriteToLogFile(Entry& entry)
|
|||||||
message += L": ";
|
message += L": ";
|
||||||
message += entry.message;
|
message += entry.message;
|
||||||
message += L'\n';
|
message += L'\n';
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
_RPT0(_CRT_WARN, StringUtil::Narrow(message).c_str());
|
_RPTW0(_CRT_WARN, message.c_str());
|
||||||
if (!m_LogToFile) return;
|
if (!m_LogToFile) return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user