SNMP++
3.3.11
|
#include <libsnmp.h>
#include <snmp_pp/config_snmp_pp.h>
#include <snmp_pp/reentrant.h>
#include <sys/types.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Classes | |
class | LogEntry |
The LogEntry class represents log entries. More... | |
class | LogEntryImpl |
The LogEntryImpl class implements a log entry using a dynamically allocated, but fixed-size buffer. More... | |
class | AgentLog |
The AgentLog class is an abstract base class representing a log for information that is generated during the run time of an AGENT++ SNMP agent. More... | |
class | AgentLogImpl |
The AgentLogImpl class is an implementation of AgentLog which writes log messages to a file, or to stdout or stderr. More... | |
class | DefaultLog |
The DefaultLog class has a static Log member, that is used by the AGENT++ API for logging. More... | |
Macros | |
#define | ERROR_LOG 0x10 |
#define | WARNING_LOG 0x20 |
#define | EVENT_LOG 0x30 |
#define | INFO_LOG 0x40 |
#define | DEBUG_LOG 0x50 |
#define | USER_LOG 0x60 |
#define | LOG_CLASS_MASK 0xF0 |
#define | LOG_LEVEL_MASK 0x0F |
#define | LOG_TYPES 6 |
#define | LOG_BEGIN(name, level) |
#define | LOG(item) *DefaultLog::log_entry() += item |
#define | LOG_END |
#define | LOG_UNUSED(x) x |
#define | MAX_LOG_SIZE 2550 |
#define ERROR_LOG 0x10 |
Definition at line 47 of file log.h.
Referenced by DefaultLog::log_entry().
#define LOG | ( | item | ) | *DefaultLog::log_entry() += item |
#define LOG_BEGIN | ( | name, | |
level | |||
) |
#define LOG_CLASS_MASK 0xF0 |
Definition at line 54 of file log.h.
Referenced by LogEntry::get_class().
#define LOG_END |
#define LOG_LEVEL_MASK 0x0F |
Definition at line 55 of file log.h.
Referenced by LogEntry::get_level(), and AgentLog::log_needed().
#define MAX_LOG_SIZE 2550 |
Definition at line 218 of file log.h.
Referenced by LogEntryImpl::bytes_left(), and LogEntryImpl::LogEntryImpl().