Functions | |
Q_LOG * | qLogOpen (const char *logbase, const char *filenameformat, int rotateinterval, bool flush) |
Open ratating-log file. | |
bool | qLogClose (Q_LOG *log) |
Close ratating-log file. | |
bool | qLogSetConsole (Q_LOG *log, bool consoleout) |
Set screen out. | |
bool | qLogFlush (Q_LOG *log) |
Flush buffered log. | |
bool | qLog (Q_LOG *log, const char *format,…) |
Log messages. |
Q_LOG* qLogOpen | ( | const char * | logbase, | |
const char * | filenameformat, | |||
int | rotateinterval, | |||
bool | flush | |||
) |
Open ratating-log file.
logbase | log directory | |
filenameformat | filename format. formatting argument is same as strftime() | |
rotateinterval | rotating interval seconds | |
flush | set to true if you want to flush everytime logging. false for buffered logging |
bool qLogClose | ( | Q_LOG * | log | ) |
Close ratating-log file.
log | a pointer of Q_LOG |
bool qLogSetConsole | ( | Q_LOG * | log, | |
bool | consoleout | |||
) |
Set screen out.
log | a pointer of Q_LOG | |
consoleout | if set it to true, logging messages will be printed out into stderr |
bool qLogFlush | ( | Q_LOG * | log | ) |
Flush buffered log.
log | a pointer of Q_LOG |
bool qLog | ( | Q_LOG * | log, | |
const char * | format, | |||
… | ||||
) |
Log messages.
log | a pointer of Q_LOG | |
format | messages format |
[Home] [About] [Examples] [Changes] [Download] [SVN Repository] [Install] [Reference] |