Class representing a logger capable of writing to files and, at the same time, to standard out.
More...
#include <full_logger.hpp>
|
| full_logger (const logging_config_t &config) |
| Full logger constructor. More...
|
|
void | log (const std::string &message) override |
|
| file_logger (const logging_config_t &config) |
| File logger constructor. More...
|
|
virtual void | log (const std::string &message, const log_level level) |
|
| logger (const logging_config_t &config) |
| Logger constructor. More...
|
|
|
void | reopen () |
| Reopen the log file in a thread-safe fashion.
|
|
std::string | file_name |
| Name of output file.
|
|
std::ofstream | file |
| Output file stream.
|
|
std::chrono::seconds | reopen_interval |
| Reopen interval in seconds.
|
|
std::chrono::system_clock::time_point | last_reopen |
| Time point when last reopen took place.
|
|
std::mutex | lock |
| Mutex to handle concurrent log writes.
|
|
Class representing a logger capable of writing to files and, at the same time, to standard out.
◆ full_logger()
full_logger::full_logger |
( |
const logging_config_t & |
config | ) |
|
|
inlineexplicit |
Full logger constructor.
- Parameters
-
◆ log()
void full_logger::log |
( |
const std::string & |
message | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: