opendnp3
3.1.0
Reference implementation of DNP3 (IEEE-1815)
|
A copyable facade over a LogRoot class. More...
#include <opendnp3/logging/Logger.h>
Classes | |
struct | Settings |
Public Member Functions | |
Logger (const std::shared_ptr< ILogHandler > &backend, ModuleId moduleid, const std::string &id, LogLevels levels) | |
Logger | detach (const std::string &id) const |
Logger | detach (const std::string &id, LogLevels levels) const |
Logger | detach (LogLevels levels) const |
LogLevels | get_levels () const |
bool | is_enabled (const LogLevel &level) const |
void | log (const LogLevel &level, const char *location, const char *message) |
void | rename (const std::string &id) |
void | set_levels (const LogLevels &filters) |
Static Public Member Functions | |
static Logger | empty () |
Private Member Functions | |
Logger ()=delete | |
Logger (const std::shared_ptr< ILogHandler > &backend, const std::shared_ptr< Settings > &settings) | |
Logger & | operator= (const Logger &)=delete |
Private Attributes | |
const std::shared_ptr< ILogHandler > | backend |
const std::shared_ptr< Settings > | settings |
|
inline |
|
inlineprivate |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 110 of file Logger.h.
Referenced by detach(), is_enabled(), and log().
|
private |
Definition at line 111 of file Logger.h.
Referenced by detach(), get_levels(), is_enabled(), log(), rename(), and set_levels().