#include <SyslogAppender.hh>
SyslogAppender sends LoggingEvents to the local syslog system.
Definition at line 25 of file SyslogAppender.hh.
log4cpp::SyslogAppender::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. Note that the C syslog API is process global, so instantion of a second SyslogAppender will 'overwrite' the syslog name of the first.
- Parameters
-
name | The name of the Appender |
syslogName | The ident parameter in the openlog(3) call. |
facility | The syslog facility to log to. Defaults to LOG_USER. |
virtual log4cpp::SyslogAppender::~SyslogAppender |
( |
| ) |
|
|
virtual |
virtual void log4cpp::SyslogAppender::_append |
( |
const LoggingEvent & |
event | ) |
|
|
protectedvirtual |
virtual void log4cpp::SyslogAppender::close |
( |
| ) |
|
|
virtual |
virtual void log4cpp::SyslogAppender::open |
( |
| ) |
|
|
protectedvirtual |
virtual bool log4cpp::SyslogAppender::reopen |
( |
| ) |
|
|
virtual |
static int log4cpp::SyslogAppender::toSyslogPriority |
( |
Priority::Value |
priority | ) |
|
|
static |
Translates a log4cpp priority to a syslog priority
- Parameters
-
- Returns
- the syslog priority.
int log4cpp::SyslogAppender::_facility |
|
protected |
const std::string log4cpp::SyslogAppender::_syslogName |
|
protected |
The documentation for this class was generated from the following file:
log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00