You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#include "objectConsoleLoggingService.h"
objectConsoleLoggingService::objectConsoleLoggingService(): basicLoggingService(){ m_bLogging = true;};
void objectConsoleLoggingService::logMessage( CSTR Msg ){ logMessage( (const char *)Msg );};
void objectConsoleLoggingService::logMessage( const char *Msg ){ if ( m_bLogging ){ time_t LocalTime; tm *gmt_time; time( &LocalTime ); gmt_time = gmtime( &LocalTime ); printf( "%04d-%02d-%02d %02d:%02d:%02d %s\n", 1900+gmt_time->tm_year, 1+gmt_time->tm_mon, gmt_time->tm_mday, gmt_time->tm_hour, gmt_time->tm_min, gmt_time->tm_sec, Msg ); };};
|