Syslog.h File Reference

#include "Support.h"
#include "Singleton.h"
#include "UdpConnection.h"
#include "Registry.h"

Include dependency graph for Syslog.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Syslog

Enumerations

enum  Severity {
  SEVERITY_EMERGENCY = 0, SEVERITY_ALERT = 1, SEVERITY_CRITICAL = 2, SEVERITY_ERROR = 3,
  SEVERITY_WARNING = 4, SEVERITY_NOTICE = 5, SEVERITY_INFO = 6, SEVERITY_DEBUG = 7
}
enum  Facility {
  FACILITY_KERNEL = 0, FACILITY_USER = 1, FACILITY_MAIL = 2, FACILITY_DAEMON = 3,
  FACILITY_SECURITY = 4, FACILITY_SYSLOG = 5, FACILITY_PRINTER = 6, FACILITY_NEWS = 7,
  FACILITY_UUCP = 8, FACILITY_CLOCK = 9, FACILITY_SECURITY2 = 10, FACILITY_FTP = 11,
  FACILITY_NTP = 12, FACILITY_LOG_AUDIT = 13, FACILITY_LOG_ALERT = 14, FACILITY_CLOCK2 = 15,
  FACILITY_LOCAL0 = 16, FACILITY_LOCAL1 = 17, FACILITY_LOCAL2 = 18, FACILITY_LOCAL3 = 19,
  FACILITY_LOCAL4 = 20, FACILITY_LOCAL5 = 21, FACILITY_LOCAL6 = 22, FACILITY_LOCAL7 = 23
}

Functions

SyslogSYSLOG ()

Variables

static const char *const MAN_SYSLOG_TAG
static const char *const MAN_SYSLOG_COLLECTOR
static const char *const MAN_SYSLOG_FACILITY
static const char *const SYSLOG_PORT = "514"
static const unsigned int SYSLOG_LIMIT_MSG_SIZE_MAX = 1024
static const unsigned int SYSLOG_LIMIT_TIMESTAMP_SIZE_MAX = 32


Enumeration Type Documentation

enum Facility

Enumerator:
FACILITY_KERNEL 
FACILITY_USER 
FACILITY_MAIL 
FACILITY_DAEMON 
FACILITY_SECURITY 
FACILITY_SYSLOG 
FACILITY_PRINTER 
FACILITY_NEWS 
FACILITY_UUCP 
FACILITY_CLOCK 
FACILITY_SECURITY2 
FACILITY_FTP 
FACILITY_NTP 
FACILITY_LOG_AUDIT 
FACILITY_LOG_ALERT 
FACILITY_CLOCK2 
FACILITY_LOCAL0 
FACILITY_LOCAL1 
FACILITY_LOCAL2 
FACILITY_LOCAL3 
FACILITY_LOCAL4 
FACILITY_LOCAL5 
FACILITY_LOCAL6 
FACILITY_LOCAL7 

Definition at line 77 of file Syslog.h.

enum Severity

Enumerator:
SEVERITY_EMERGENCY 
SEVERITY_ALERT 
SEVERITY_CRITICAL 
SEVERITY_ERROR 
SEVERITY_WARNING 
SEVERITY_NOTICE 
SEVERITY_INFO 
SEVERITY_DEBUG 

Definition at line 65 of file Syslog.h.


Function Documentation

Syslog* SYSLOG (  )  [inline]

Definition at line 143 of file Syslog.h.

References Singleton< T >::instance().

Referenced by Core::init().


Variable Documentation

const char* const MAN_SYSLOG_COLLECTOR [static]

Initial value:

 "\
<registry>String syslog.collector(\"255.255.255.255\")</registry>\n\n\
Host name or IP address of syslog server which will collect the \
messages. Value <value>\"255.255.255.255\"</value> means messaged \
will be broadcasted. It is not a standard behavior (see RFC3164) \
but usually syslog servers support it.\
"

Definition at line 23 of file Syslog.h.

const char* const MAN_SYSLOG_FACILITY [static]

Initial value:

 "\
<registry>String syslog.facility(\"local5\")</registry>\n\n\
Syslog facility that generates messages. Acceptable values are (see RFC3164):\n\
<value>\"kernel\"</value> - kernel messages;\n\
<value>\"user\"</value> - user-level messages;\n\
<value>\"mail\"</value> - mail system;\n\
<value>\"daemon\"</value> - system daemons;\n\
<value>\"security\"</value> - security/authorization messages;\n\
<value>\"syslog\"</value> - messages generated internally by syslogd;\n\
<value>\"printer\"</value> - line printer subsystem;\n\
<value>\"news\"</value> - network news subsystem;\n\
<value>\"uucp\"</value> - UUCP subsystem;\n\
<value>\"clock\"</value> - clock daemon;\n\
<value>\"security2\"</value> - security/authorization messages;\n\
<value>\"ftp\"</value> - FTP daemon;\n\
<value>\"ntp\"</value> - NTP subsystem;\n\
<value>\"log_audit\"</value> - log audit;\n\
<value>\"log_alert\"</value> - log alert;\n\
<value>\"clock2\"</value> - clock daemon;\n\
<value>\"local0\"</value> - local use 0;\n\
<value>\"local1\"</value> - local use 1;\n\
<value>\"local2\"</value> - local use 2;\n\
<value>\"local3\"</value> - local use 3;\n\
<value>\"local4\"</value> - local use 4;\n\
<value>\"local5\"</value> - local use 5;\n\
<value>\"local6\"</value> - local use 6;\n\
<value>\"local7\"</value> - local use 7.\
"

Definition at line 31 of file Syslog.h.

const char* const MAN_SYSLOG_TAG [static]

Initial value:

 "\
<registry>String syslog.tag(\"pylon\")</registry>\n\n\
According to syslog protocol (RFC3164) the value will be considered as a \
name of the program or process that generated the message.\
"

Definition at line 17 of file Syslog.h.

const unsigned int SYSLOG_LIMIT_MSG_SIZE_MAX = 1024 [static]

Definition at line 62 of file Syslog.h.

Referenced by Syslog::log().

const unsigned int SYSLOG_LIMIT_TIMESTAMP_SIZE_MAX = 32 [static]

Definition at line 63 of file Syslog.h.

Referenced by Syslog::log().

const char* const SYSLOG_PORT = "514" [static]

Definition at line 60 of file Syslog.h.

Referenced by Syslog::Syslog().


Generated on Thu Sep 6 20:12:53 2007 for Pylon Application Platform by  doxygen 1.5.1