A log is like a regular output stream, but it also supports messages at different priorities, see log_level. More...
#include <tpie/logstream.h>
Inherits std::ostream.
Public Member Functions | |
logstream (log_level level=LOG_INFORMATIONAL) | |
Constructor. More... | |
void | add_target (log_target *t) |
Add a target for the log messages. More... | |
void | remove_target (log_target *t) |
Remove a target for the log messages. More... | |
void | set_level (log_level level) |
Set the current level of logging. More... | |
void | disable (bool d=false) |
void | enable (bool e=true) |
bool | enabled () |
A log is like a regular output stream, but it also supports messages at different priorities, see log_level.
Do not instantiate this class directly. Instead, use get_log() as well as helper methods log_fatal(), log_error(), log_info(), log_warning(), log_app_debug(), log_debug() and log_mem_debug().
Definition at line 76 of file logstream.h.
|
inline |
Constructor.
Definition at line 83 of file logstream.h.
|
inline |
Add a target for the log messages.
Definition at line 88 of file logstream.h.
|
inline |
Remove a target for the log messages.
Definition at line 93 of file logstream.h.
|
inline |
Set the current level of logging.
Definition at line 98 of file logstream.h.