5 namespace dangerous {
namespace snmp {
37 for(
int i = 0; i <
MAX; i++ ) {
48 if( (
int)system < (
int)GENERAL ) {
51 if( (
int)system >= (
int)
MAX ) {
63 if( (
int)system < (
int)GENERAL ) {
66 if( (
int)system >= (
int)
MAX ) {
77 inline std::ostream&
out() {
bool systems[Logger::MAX]
This is the mapping of the logging system to its on/off status.
Definition: logger.hpp:83
bool system(System system)
This returns the logging status for the given system.
Definition: logger.hpp:47
std::ostream & out()
This returns the output stream for the Logger.
Definition: logger.hpp:77
Placeholder for the maximum value of the enumeration.
Definition: logger.hpp:28
The Logger class is the mechanism by which Dangerous SNMP will perform logging operations.
Definition: logger.hpp:14
Logging related to parsing.
Definition: logger.hpp:23
Logging related to input/output.
Definition: logger.hpp:24
Logger()
Default constructor.
Definition: logger.hpp:36
Logger logger
We will expose a global Logger instance.
Logging related to decoding messages.
Definition: logger.hpp:21
void system(System system, bool enabled)
This enables or disables logging for the given system.
Definition: logger.hpp:62
System
This defines an enumeration for the various "systems" in Dangerous SNMP.
Definition: logger.hpp:18
Logging related to clients.
Definition: logger.hpp:26
Logging related to agents.
Definition: logger.hpp:27
Logging related to ByteStream.
Definition: logger.hpp:22
Logging related to transports.
Definition: logger.hpp:25