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.
21 lines
554 B
21 lines
554 B
#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 ) m_pDBC->putIntoLog( ( CSTR ) Msg );
|
|
};
|