#include <Log.h>
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. |
int CLog::SetFile | ( | std::string | file | ) |
Select output log file.
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) .