Dangerous SNMP
|
The Logger class is the mechanism by which Dangerous SNMP will perform logging operations. More...
#include <logger.hpp>
Public Types | |
enum | System { GENERAL = 0, ENCODING, DECODING, BYTESTREAM, PARSING, IO, TRANSPORT, CLIENT, AGENTX, MAX } |
This defines an enumeration for the various "systems" in Dangerous SNMP. More... | |
Public Member Functions | |
Logger () | |
Default constructor. More... | |
bool | system (System system) |
This returns the logging status for the given system. More... | |
void | system (System system, bool enabled) |
This enables or disables logging for the given system. More... | |
std::ostream & | out () |
This returns the output stream for the Logger. More... | |
Protected Attributes | |
bool | systems [Logger::MAX] |
This is the mapping of the logging system to its on/off status. | |
The Logger class is the mechanism by which Dangerous SNMP will perform logging operations.
Logging is broken down into various sections, so that you may view only what you are interested in looking at.
enum System |
This defines an enumeration for the various "systems" in Dangerous SNMP.
Enumerator | |
---|---|
DECODING |
Logging related to decoding messages. |
BYTESTREAM |
Logging related to ByteStream. |
PARSING |
Logging related to parsing. |
IO |
Logging related to input/output. |
TRANSPORT |
Logging related to transports. |
CLIENT |
Logging related to clients. |
AGENTX |
Logging related to agents. |
MAX |
Placeholder for the maximum value of the enumeration. |
|
inline |
Default constructor.
All logging systems are turned off.
|
inline |
This returns the output stream for the Logger.
|
inline |
This returns the logging status for the given system.
system | The logging system. |
|
inline |
This enables or disables logging for the given system.
system | The logging system. |
enabled | true to enable the system, false to disable it. |