libqi-api
2.0.6.8
|
Print colored logs to the console. More...
#include <consoleloghandler.hpp>
Public Member Functions | |
ConsoleLogHandler () | |
~ConsoleLogHandler () | |
void | log (const qi::LogLevel verb, const qi::os::timeval date, const char *category, const char *msg, const char *file, const char *fct, const int line) |
Prints a log message on the console. | |
void | updateColor () |
Protected Attributes | |
PrivateConsoleLogHandler * | _p |
Print colored logs to the console.
Colors will only be enabled if the output is a tty.
Definition at line 21 of file consoleloghandler.hpp.
Initialize everything the console log handler needs to print on the console with colors.
Unloads any data managed by ConsoleLogHandler. Destructor is not virtual.
qi::log::ConsoleLogHandler::log | ( | const qi::LogLevel | verb, |
const qi::os::timeval | date, | ||
const char * | category, | ||
const char * | msg, | ||
const char * | file, | ||
const char * | fct, | ||
const int | line | ||
) |
Prints a log message on the console.
verb | verbosity of the log message. |
date | date at which the log message was issued. |
category | will be used in future for filtering |
msg | actual message to log. |
file | filename from which this log message was issued. |
fct | function name from which this log message was issued. |
line | line number in the issuer file. |
PrivateConsoleLogHandler* qi::log::ConsoleLogHandler::_p [protected] |
Definition at line 45 of file consoleloghandler.hpp.