This logger class writes log messages to standard output. More...
#include <kanzi/core/log/cout_logger.hpp>
Protected Member Functions | |
void | writeOverride (LogLevel level, string_view levelName, string_view categoryName, string_view fileName, size_t lineNumber, string_view message) override |
See kanzi::AbstractLogger::writeOverride. More... | |
Additional Inherited Members | |
Public Member Functions inherited from kanzi::AbstractLogger | |
void | write (LogLevel level, string_view levelName, string_view categoryName, string_view fileName, size_t lineNumber, string_view message) |
Kanzi calls this function to store the message to the log. More... | |
virtual | ~AbstractLogger () |
Destructor. More... | |
This logger class writes log messages to standard output.
|
overrideprotectedvirtual |
See kanzi::AbstractLogger::writeOverride.
Every log message is prefixed with levelName
and categoryName
. The messages with level
= LogLevelError are prefixed with fileName
and lineNumber
.
level | The log level of the message. |
levelName | The string representation of the log level. |
categoryName | The string representation of the log category. |
fileName | The name of the file from which the log message originated. |
lineNumber | The number of the line in the file from which the log message originated. |
message | The message being written to the log. |
Implements kanzi::AbstractLogger.