|
bitsim
Model, simulate, estimate and control robots in C++
|
Namespaces | |
| namespace | detail |
Enumerations | |
| enum class | Level { trace , debug , info , warn , error , critical , off } |
| The severity of a message, and the lowest severity a logger writes. More... | |
Functions | |
| void | set_level (Level level) |
| Set the level of every logger, and of the loggers made later. | |
| void | set_level (const std::string &logger, Level level) |
| Set the level of the logger with the given name, making it if needed. | |
| Level | get_level (const std::string &logger) |
| The level of the logger with the given name, making it if needed. | |
| void | add_file_sink (const std::string &filename, bool truncate=true) |
| Write the messages of every logger to a file as well. | |
| void | set_pattern (const std::string &pattern) |
| Set the format of the messages of every sink, in spdlog's pattern syntax. The default is "[%Y-%m-%d %H:%M:%S.%e] [%n] [%l] %v": the time, the logger, the level and the message. | |
| void | flush () |
| Write out what the sinks hold. | |
|
strong |
| void bitsim::log::add_file_sink | ( | const std::string & | filename, |
| bool | truncate = true ) |
Write the messages of every logger to a file as well.
| filename | The file, made if it does not exist |
| truncate | Empty the file first, rather than appending to it |
| void bitsim::log::flush | ( | ) |
Write out what the sinks hold.
| Level bitsim::log::get_level | ( | const std::string & | logger | ) |
The level of the logger with the given name, making it if needed.
| void bitsim::log::set_level | ( | const std::string & | logger, |
| Level | level ) |
Set the level of the logger with the given name, making it if needed.
| void bitsim::log::set_level | ( | Level | level | ) |
Set the level of every logger, and of the loggers made later.
| void bitsim::log::set_pattern | ( | const std::string & | pattern | ) |
Set the format of the messages of every sink, in spdlog's pattern syntax. The default is "[%Y-%m-%d %H:%M:%S.%e] [%n] [%l] %v": the time, the logger, the level and the message.