Page 1 of 1

New Logger Proposal

PostPosted: 20 Jun 2012, 10:57
by paul424
I though a little about the game logging.
Can the cerr be redefined inside an app ?

{l Code}: {l Select All Code}
#ifdef CERR_DEBUG_BUILD_MODULE_1
#define LOG( x )  if(getSingeltonLogger->flags_set(!( __FILE__FLAG__NUMBER__  |  __FUNCTION__FLAG__NUMBER) )) {}else { cerrLogPrint( x, __FILE__, __LINE__,__FUNCTION__ );}
#else
#define LOG( x )
#endif

where

void cerrLogPrint( const char* const log, const char* filename, unsigned int line)
{
     //PRINT
}


We could also set diffrent debug macros for diffrent debug levels like info, warn, error, debug , whith the minimal level of severity of log we wanna get is specified as app's cmd line options ( the same regards the file's and function's names).

Re: New Logger Proposal

PostPosted: 20 Jun 2012, 11:00
by oln
There is a logging class already.

Re: New Logger Proposal

PostPosted: 02 Aug 2012, 23:08
by paul424
Sorry to bother about such stupid thingie , Back to my question, I tried to get log messages, but there are no files of name "gameLog". Where they should be ?