A logger written in c++.
Everything is defined behind the logging
namespace.
A logger constuctor is provided. The parametres of the constructor is the name and default logging level enum value. Just as in my wrapper around the python logging package, the level parametre passed to this function sets the minimum level that the logger will output.
To setup the logger correctly, you will need to either add stdout
or a file. To do so, you will either need to call the add_console
function or add_file
method respectively. To use both stdout
and a file, you need to call the full_setup
method.
To log a message, you need to call the log
method. This method takes a view into a null-terminated log message without a newline, and a level with which the message will be logged.
A default destructor is available.