CLog Class Reference

Global logger. More...

#include <Log.h>

Inheritance diagram for CLog:

CSingleton< CLog >

List of all members.

Public Types

typedef void(__closure * CallbackLog )(char *buf)
 OnLog callback declaration.

Public Member Functions

void log (int level, char *lpData,...)
 Log formatted text with timestamp.
int SetFile (std::string)
 Select output log file.
void SetLevel (int)
 Set log detail level / disable logging.

Public Attributes

CallbackLog callbackLog
 Callback called when new log line is added.


Detailed Description

Global logger.

Member Function Documentation

int CLog::SetFile ( std::string  file  ) 

Select output log file.

Returns:
zero on no error


Member Data Documentation

Callback called when new log line is added.

If set, this callback is called when new log line is added. This can be used to update user interface (i.e. add some items to TListView) when log is written by various decoupled units (with no knowledge about user interface) .


The documentation for this class was generated from the following files:

Generated on Wed May 15 22:42:22 2013 for miniscope v3 by  doxygen 1.5.9
Tomasz Ostrowski