log4cpp  1.1.6
IdsaAppender.hh
Go to the documentation of this file.
1 /*
2  * IdsaAppender.hh
3  *
4  * Copyright 2000, Marc Welz
5  *
6  * See the COPYING file for the terms of usage and distribution.
7  */
8 
9 #ifndef _LOG4CPP_IDSAAPPENDER_HH
10 #define _LOG4CPP_IDSAAPPENDER_HH
11 
12 #include <idsa.h>
14 #include <log4cpp/Portability.hh>
15 #include <stdarg.h>
16 #include <string>
17 
18 namespace log4cpp {
19 
25  class IdsaAppender : public AppenderSkeleton {
26  public:
33  IdsaAppender(const std::string& name, const std::string& idsaName);
34  virtual ~IdsaAppender();
35 
39  virtual bool reopen();
40 
44  virtual void close();
45 
50  virtual bool requiresLayout() const;
51 
52  virtual void setLayout(Layout* layout);
53 
54  protected:
58  virtual void open();
59 
64  virtual void _append(const LoggingEvent& event);
65 
66  const std::string _idsaName;
67 
68  IDSA_CONNECTION* _idsaConnection;
69  };
70 } // namespace log4cpp
71 
72 #endif // _LOG4CPP_IDSAAPPENDER_HH
IdsaAppender is an Appender that sends LoggingEvents to the IDS/A logger and reference monitor by Mar...
Definition: IdsaAppender.hh:25
virtual bool reopen()
Calls idsa_open() and idsa_close()
const std::string _idsaName
Definition: IdsaAppender.hh:66
AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already takes care of...
Definition: AppenderSkeleton.hh:24
Extend this abstract class to create your own log layout format.
Definition: Layout.hh:22
virtual void setLayout(Layout *layout)
Set the Layout for this appender.
The top level namespace for all &#39;Log for C++&#39; types and classes.
Definition: AbortAppender.hh:16
The internal representation of logging events.
Definition: LoggingEvent.hh:32
virtual void open()
Calls idsa_open().
virtual bool requiresLayout() const
The IdsaAppender does its own Layout.
virtual void _append(const LoggingEvent &event)
Sends a LoggingEvent to idsa.
virtual void close()
Calls idsa_close()
IDSA_CONNECTION * _idsaConnection
Definition: IdsaAppender.hh:68
IdsaAppender(const std::string &name, const std::string &idsaName)
Instantiate an IdsaAppender with given name and name.