Class representing a logger capable of writing to standard out stream.
More...
#include <std_out_logger.hpp>
|
| std_out_logger (const logging_config_t &config) |
| Standard out logger constructor. More...
|
|
virtual void | log (const std::string &message, const log_level level) |
|
virtual void | log (const std::string &message) |
|
| logger (const logging_config_t &config) |
| Logger constructor. More...
|
|
|
const std::unordered_map< log_level, std::string, enum_hasher > | levels |
| Map of logging levels. More...
|
|
std::mutex | lock |
| Mutex to handle concurrent log writes.
|
|
Class representing a logger capable of writing to standard out stream.
◆ std_out_logger()
std_out_logger::std_out_logger |
( |
const logging_config_t & |
config | ) |
|
|
inline |
Standard out logger constructor.
- Parameters
-
config | Logger configuration which can be used to specify either colored or uncolored mode |
◆ log() [1/2]
virtual void std_out_logger::log |
( |
const std::string & |
message, |
|
|
const log_level |
level |
|
) |
| |
|
inlinevirtual |
◆ log() [2/2]
virtual void std_out_logger::log |
( |
const std::string & |
message | ) |
|
|
inlinevirtual |
◆ levels
const std::unordered_map<log_level, std::string, enum_hasher> std_out_logger::levels |
|
protected |
Map of logging levels.
- See also
- logging::uncolored
-
logging::colored
The documentation for this class was generated from the following file: