Logger Class
Public Types
enum class Level
| Constant |
|---|
Info |
Advanced |
Error |
using Callback = std::function<void (const std::string &, Level)>
No description available.
Public Functions
| void | set_callback(Callback callback) |
| void | log(const std::string & message, Level level = Level::Info) |
| void | log_info(const std::string & message) |
| void | log_advanced(const std::string & message) |
| void | log_error(const std::string & message) |
| std::size_t | error_count() |
Detailed Description
No description available.
Member Function Documentation
void set_callback(Callback callback)
Set the callback for log output
void log(const std::string & message, Level level = Level::Info)
Log a message
void log_info(const std::string & message)
Convenience methods
void log_advanced(const std::string & message)
No description available.
void log_error(const std::string & message)
No description available.
std::size_t error_count()
Number of Error-level messages logged since construction, counted whether or not a callback is set