Index: src/ch/AsyncHttpFile.cpp =================================================================== diff -u -ra08ca9e12d93e9a036a5cf739348ff3ef2a58be8 -r16ea740ddcaeb5a99dc90061ae0f0a2f89aa0d74 --- src/ch/AsyncHttpFile.cpp (.../AsyncHttpFile.cpp) (revision a08ca9e12d93e9a036a5cf739348ff3ef2a58be8) +++ src/ch/AsyncHttpFile.cpp (.../AsyncHttpFile.cpp) (revision 16ea740ddcaeb5a99dc90061ae0f0a2f89aa0d74) @@ -355,7 +355,7 @@ logger::TLoggerPtr spLog = logger::MakeLogger(GetLogFileData(), L"AsyncHttpFile"); CString strMsg; - strMsg.Format(_T("[InternetStatusCallback] hInternet: %p, dwContext: %Iu (operation: %lu), dwInternetStatus: %lu, lpvStatusInformation: %p, dwStatusInformationLength: %lu"), + strMsg.Format(_T("InternetStatusCallback - hInternet: %p, dwContext: %Iu (operation: %lu), dwInternetStatus: %lu, lpvStatusInformation: %p, dwStatusInformationLength: %lu"), hInternet, (size_t)dwContext, pRequest->eOperationType, dwInternetStatus, lpvStatusInformation, dwStatusInformationLength); ATLTRACE(L"%s\n", strMsg); LOG_DEBUG(spLog) << strMsg; @@ -395,7 +395,7 @@ } default: - TRACE(_T("[CAsyncHttpFile::InternetStatusCallback()] Unhandled status: %lu\n"), dwInternetStatus); + TRACE(_T("InternetStatusCallback - unhandled status: %lu\n"), dwInternetStatus); } pRequest->pHttpFile->SetCompletionStatus(dwInternetStatus); Index: src/liblogger/TLogRecord.h =================================================================== diff -u -r7de00e54431d78b6c54fad6fb163dbc306381ef5 -r16ea740ddcaeb5a99dc90061ae0f0a2f89aa0d74 --- src/liblogger/TLogRecord.h (.../TLogRecord.h) (revision 7de00e54431d78b6c54fad6fb163dbc306381ef5) +++ src/liblogger/TLogRecord.h (.../TLogRecord.h) (revision 16ea740ddcaeb5a99dc90061ae0f0a2f89aa0d74) @@ -58,7 +58,10 @@ boost::posix_time::wtime_facet* facet = new boost::posix_time::wtime_facet(); facet->format(L"%Y-%m-%d %H:%M:%S.%f"); imbue(std::locale(std::locale::classic(), facet)); - *this << boost::posix_time::microsec_clock::local_time() << L" [" << SeverityLevelToString(eLevel) << L"] " << wstrChannel << L": "; + + DWORD dwThreadId = GetCurrentThreadId(); + + *this << boost::posix_time::microsec_clock::local_time() << L" [" << SeverityLevelToString(eLevel) << L"] " << wstrChannel << L"[" << dwThreadId << L"]: "; } inline TLogRecord::~TLogRecord()