A simple logger that writes messages to a tpie temporary file. More...
#include <tpie/tpie_log.h>
Inherits tpie::log_target.
Public Member Functions | |
file_log_target (log_level threshold) | |
Construct a new file logger. More... | |
void | log (log_level level, const char *message, size_t) |
Implement log_target virtual method to record message. More... | |
Public Attributes | |
std::ofstream | m_out |
std::string | m_path |
log_level | m_threshold |
A simple logger that writes messages to a tpie temporary file.
Definition at line 34 of file tpie_log.h.
tpie::file_log_target::file_log_target | ( | log_level | threshold | ) |
Construct a new file logger.
threshold | record messages at or above this severity threshold |
|
virtual |
Implement log_target virtual method to record message.
level | severity of message |
message | content of message |
Implements tpie::log_target.