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 "objectMySQLLoggingService.h"
objectMySQLLoggingService::objectMySQLLoggingService(){ m_bLogging = false; m_pDBC = NULL;};
objectMySQLLoggingService::objectMySQLLoggingService( serverDataBinder *ptr ){ m_pDBC = ptr; m_bLogging = ( m_pDBC != NULL );};
void objectMySQLLoggingService::logMessage( CSTR Msg ){ if( !m_bLogging ) return; logMessage( (const char * ) Msg );};
void objectMySQLLoggingService::logMessage( const char *Msg ){ if( !m_bLogging ) return; if( m_pDBC ){ char tType[3]; char tTS[20]; strncpy( tType, Msg, 2); tType[2] = (char) 0; strncpy( tTS, Msg+3, 19); tTS[19] = (char) 0; CSTR tMsg = (CSTR)Msg+23; m_pDBC->putIntoLog( tType, tTS, tMsg ); } else { m_bLogging = false; };};
|