New Logger Proposal

New Logger Proposal

Postby paul424 » 20 Jun 2012, 10:57

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).
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: New Logger Proposal

Postby oln » 20 Jun 2012, 11:00

There is a logging class already.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: New Logger Proposal

Postby paul424 » 02 Aug 2012, 23:08

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 ?
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Who is online

Users browsing this forum: No registered users and 1 guest

cron