|
||||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Logger.
;Sample configuration file: [Default] ;Level can be: ;0-Trace, 1-Debug, 2-Info, 3-Warning, 4-Error level=0 ;destination can be: ;0-Messagebox, 1-File, 2-Debug console, 4-Stderr, 5-Eventlog, 6-NULL destination=1 filename=..\logs\default.log lock=0 [Myname] level=2 destination=5 filename=..\logs\myname.log lock=0
| Constructor Summary | |
CzzLog( const CzzString& app )
Create a logger. |
|
CzzLog( const CzzString& app, const CzzString& ini )
Create a logger |
|
CzzLog( CzzLog& obj )
Copy constructor |
|
CzzLog( void )
Create a logger with the name "default" |
|
~CzzLog()
|
|
| Method Summary | |
HLOG |
GetHandle()
Log handle |
LOGRET |
Print( const LOGLEVEL Level, const int ErrorCode, const int Row, const char* Module, const char* Message,... )
Log a message. |
| Constructor Detail |
public CzzLog( const CzzString& app );
app - Namepublic CzzLog( const CzzString& app, const CzzString& ini );
app - Name
ini - Path to configuration filepublic CzzLog( CzzLog& obj );
public CzzLog( void );
public ~CzzLog();
| Method Detail |
public HLOG GetHandle();
public LOGRET Print( const LOGLEVEL Level, const int ErrorCode, const int Row, const char* Module, const char* Message,... );
Level - Loglevel
ErrorCode - Error code
Row - Line number
Module - File or module
Message - Message/format, see printf()
... - arguments to format string, see printf()CzzLogException
|
||||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||