All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SyslogAppender.hh
Go to the documentation of this file.
1 /*
2  * SyslogAppender.hh
3  *
4  * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5  * Copyright 2000, Bastiaan Bakker. All rights reserved.
6  *
7  * See the COPYING file for the terms of usage and distribution.
8  */
9 
10 #ifndef _LOG4CPP_SYSLOGAPPENDER_HH
11 #define _LOG4CPP_SYSLOGAPPENDER_HH
12 
13 #include <log4cpp/Portability.hh>
14 #include <string>
15 #include <stdarg.h>
16 #include <syslog.h>
18 #include <log4cpp/Priority.hh>
19 
21 
26 public:
27 
33  static int toSyslogPriority(Priority::Value priority);
34 
44  SyslogAppender(const std::string& name, const std::string& syslogName,
45  int facility = LOG_USER);
46  virtual ~SyslogAppender();
47 
51  virtual bool reopen();
52 
56  virtual void close();
57 
58 protected:
59 
63  virtual void open();
64 
69  virtual void _append(const LoggingEvent& event);
70 
71  const std::string _syslogName;
72  int _facility;
73 };
75 
76 #endif // _LOG4CPP_SYSLOGAPPENDER_HH
LoggingEvent
The top level namespace for all 'Log for C++' types and classes.
Definition: LoggingEvent.hh:32
Priority.hh
AppenderSkeleton::close
virtual void close()=0
Release any resources allocated within the appender such as file handles, network connections,...
Portability.hh
SyslogAppender
SyslogAppender sends LoggingEvents to the local syslog system.
Definition: SyslogAppender.hh:25
Priority::Value
int Value
The type of Priority Values.
Definition: Priority.hh:87
SyslogAppender::_syslogName
const std::string _syslogName
Definition: SyslogAppender.hh:71
LOG4CPP_NS_BEGIN
#define LOG4CPP_NS_BEGIN
Definition: Portability.hh:49
LOG4CPP_NS_END
#define LOG4CPP_NS_END
Definition: Portability.hh:50
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition: Export.hh:21
SyslogAppender::_facility
int _facility
Definition: SyslogAppender.hh:72
LOG_USER
@ LOG_USER
random user-level messages
Definition: RemoteSyslogAppender.hh:41
AppenderSkeleton::reopen
virtual bool reopen()
Reopens the output destination of this Appender, e.g.
LayoutAppender.hh
LayoutAppender
LayoutAppender is a common superclass for all Appenders that require a Layout.
Definition: LayoutAppender.hh:24
AppenderSkeleton::_append
virtual void _append(const LoggingEvent &event)=0
Log in Appender specific way.


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:12