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... | |
void | begin_group (const std::string &name) |
Creates a new logging group. More... | |
void | end_group () |
Closes the most recently created logging group. 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 37 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 |
Creates a new logging group.
All console output that occurs after this will appear in the same visual group.
Reimplemented from tpie::log_target.
|
virtual |
Closes the most recently created logging group.
Reimplemented from tpie::log_target.
|
virtual |
Implement log_target virtual method to record message.
level | severity of message |
message | content of message |
Implements tpie::log_target.