|
opendnp3
3.1.0
Reference implementation of DNP3 (IEEE-1815)
|
LogHandler that prints all log messages to the console. More...
#include <opendnp3/ConsoleLogger.h>
Public Member Functions | |
| ConsoleLogger (bool printLocation) | |
| void | log (opendnp3::ModuleId module, const char *id, opendnp3::LogLevel level, char const *location, char const *message) final |
| Callback method for log messages. More... | |
Public Member Functions inherited from opendnp3::ILogHandler | |
| virtual | ~ILogHandler () |
Static Public Member Functions | |
| static std::shared_ptr< opendnp3::ILogHandler > | Create (bool printLocation=false) |
Private Attributes | |
| std::mutex | mutex |
| bool | printLocation |
Additional Inherited Members | |
Private Member Functions inherited from opendnp3::Uncopyable | |
| Uncopyable ()=default | |
| Uncopyable (Uncopyable &&)=default | |
| virtual | ~Uncopyable ()=default |
| Uncopyable & | operator= (Uncopyable &&)=default |
LogHandler that prints all log messages to the console.
Definition at line 35 of file ConsoleLogger.h.
|
inline |
Definition at line 50 of file ConsoleLogger.h.
|
inlinestatic |
Definition at line 45 of file ConsoleLogger.h.
References printLocation.
|
finalvirtual |
Callback method for log messages.
| module | ModuleId of the logger |
| id | string id of the logger |
| level | bitfield LogLevel of the logger |
| location | location in the source of the log call |
| message | message of the log call |
Implements opendnp3::ILogHandler.
|
private |
Definition at line 55 of file ConsoleLogger.h.
|
private |
Definition at line 53 of file ConsoleLogger.h.
Referenced by Create().