Go to the documentation of this file.
10 #ifndef _LOG4SHIB_SYSLOGAPPENDER_HH
11 #define _LOG4SHIB_SYSLOGAPPENDER_HH
76 #endif // _LOG4SHIB_SYSLOGAPPENDER_HH
SyslogAppender sends LoggingEvents to the local syslog system.
Definition: SyslogAppender.hh:25
int _facility
Definition: SyslogAppender.hh:72
const std::string _syslogName
Definition: SyslogAppender.hh:71
SyslogAppender(const std::string &name, const std::string &syslogName, int facility=LOG_USER)
Instantiate a SyslogAppender with given name and name and facility for syslog.
int Value
The type of Priority Values.
Definition: Priority.hh:84
virtual bool reopen()
Calls closelog(3) and openlog(3).
The top level namespace for all 'Log for C++' types and classes.
Definition: AbortAppender.hh:16
static int toSyslogPriority(Priority::Value priority)
Translates a log4shib priority to a syslog priority.
virtual void close()
Calls closelog(3) to close the syslog file descriptor.
virtual void open()
Calls openlog(3).
virtual void _append(const LoggingEvent &event)
Sends a LoggingEvent to syslog.
@ LOG_USER
random user-level messages
Definition: RemoteSyslogAppender.hh:41
The internal representation of logging events.
Definition: LoggingEvent.hh:32
virtual ~SyslogAppender()
LayoutAppender is a common superclass for all Appenders that require a Layout.
Definition: LayoutAppender.hh:24