|
libqi-api
2.1.4.13
|
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. More... | |
| 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.
| qi::log::ConsoleLogHandler::ConsoleLogHandler | ( | ) |
Initialize everything the console log handler needs to print on the console with colors.
| qi::log::ConsoleLogHandler::~ConsoleLogHandler | ( | ) |
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. |
| void qi::log::ConsoleLogHandler::updateColor | ( | ) |
|
protected |
Definition at line 45 of file consoleloghandler.hpp.