Index: src/liblogger/TAsyncMultiLogger.cpp =================================================================== diff -u -rdf9de596aad09b008aa076f8e5bb479f19c77259 -r60a4fdd460c76ecb5ccf03802ca5d0b679d23d51 --- src/liblogger/TAsyncMultiLogger.cpp (.../TAsyncMultiLogger.cpp) (revision df9de596aad09b008aa076f8e5bb479f19c77259) +++ src/liblogger/TAsyncMultiLogger.cpp (.../TAsyncMultiLogger.cpp) (revision 60a4fdd460c76ecb5ccf03802ca5d0b679d23d51) @@ -143,7 +143,7 @@ // append emergency message if(!strError.empty()) { - spLogData->PushLogEntry(strError); + spLogData->PushLogEntry(strError.c_str()); spLogData->DisableLogging(); } Index: src/liblogger/TLogFileData.cpp =================================================================== diff -u -rdf9de596aad09b008aa076f8e5bb479f19c77259 -r60a4fdd460c76ecb5ccf03802ca5d0b679d23d51 --- src/liblogger/TLogFileData.cpp (.../TLogFileData.cpp) (revision df9de596aad09b008aa076f8e5bb479f19c77259) +++ src/liblogger/TLogFileData.cpp (.../TLogFileData.cpp) (revision 60a4fdd460c76ecb5ccf03802ca5d0b679d23d51) @@ -74,12 +74,12 @@ m_bLoggingEnabled = false; } - void TLogFileData::PushLogEntry(std::wstring strLine) + void TLogFileData::PushLogEntry(const wchar_t* pszLine) { if(m_spLogFile && m_bLoggingEnabled) { boost::unique_lock lock(m_mutex); - m_listEntries.push_back(strLine); + m_listEntries.push_back(pszLine ? pszLine : L""); SetEvent(m_spHasEntriesEvent.get()); } } Index: src/liblogger/TLogFileData.h =================================================================== diff -u -rdf9de596aad09b008aa076f8e5bb479f19c77259 -r60a4fdd460c76ecb5ccf03802ca5d0b679d23d51 --- src/liblogger/TLogFileData.h (.../TLogFileData.h) (revision df9de596aad09b008aa076f8e5bb479f19c77259) +++ src/liblogger/TLogFileData.h (.../TLogFileData.h) (revision 60a4fdd460c76ecb5ccf03802ca5d0b679d23d51) @@ -42,7 +42,7 @@ TLoggerPaths GetMainLogPath() const; private: - void PushLogEntry(std::wstring strLine); + void PushLogEntry(const wchar_t* pszLine); void DisableLogging(); std::shared_ptr GetEntriesEvent() const; Index: src/liblogger/TLogRecord.h =================================================================== diff -u -r2e4eacb299f21d06196fe13140b4b0d095abdca9 -r60a4fdd460c76ecb5ccf03802ca5d0b679d23d51 --- src/liblogger/TLogRecord.h (.../TLogRecord.h) (revision 2e4eacb299f21d06196fe13140b4b0d095abdca9) +++ src/liblogger/TLogRecord.h (.../TLogRecord.h) (revision 60a4fdd460c76ecb5ccf03802ca5d0b679d23d51) @@ -67,7 +67,7 @@ inline TLogRecord::~TLogRecord() { *this << L"\r\n"; - m_spFileData->PushLogEntry(str()); + m_spFileData->PushLogEntry(str().c_str()); } inline bool TLogRecord::IsEnabled() const