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
#define LOG4CPP_NS_END
Definition: Portability.hh:50
const std::string _syslogName
virtual bool reopen()
Reopens the output destination of this Appender, e.g.
The top level namespace for all &#39;Log for C++&#39; types and classes.
Definition: LoggingEvent.hh:32
virtual void _append(const LoggingEvent &event)=0
Log in Appender specific way.
LayoutAppender is a common superclass for all Appenders that require a Layout.
virtual void close()=0
Release any resources allocated within the appender such as file handles, network connections...
#define LOG4CPP_EXPORT
Definition: Export.hh:21
SyslogAppender sends LoggingEvents to the local syslog system.
int Value
The type of Priority Values.
Definition: Priority.hh:87
random user-level messages
#define LOG4CPP_NS_BEGIN
Definition: Portability.hh:49


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54