| 214 | } |
| 215 | |
| 216 | void 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 | |
| 230 | std::list<tstring>& |
| 231 | SERVER::recent_files() |
nothing calls this directly
no outgoing calls
no test coverage detected