MCPcopy Create free account
hub / github.com/KDE/kdiff3 / logMessage

Method logMessage

diff_ext_for_kdiff3/server.cpp:216–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void SERVER::logMessage( const char* function, const char* file, int line, const tstring& msg )
217{
218 SERVER* pServer = SERVER::instance();
219 if ( pServer && pServer->m_pLogFile )
220 {
221 SYSTEMTIME st;
222 GetSystemTime( &st );
223 _ftprintf( pServer->m_pLogFile, TEXT("%04d/%02d/%02d %02d:%02d:%02d ")
224 TEXT("%S (%S:%d) %s\n"), // integrate char-string into wchar_t string
225 st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond, function, file, line, msg.c_str() );
226 fflush(pServer->m_pLogFile);
227 }
228}
229
230std::list<tstring>&
231SERVER::recent_files()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected