log4shib 2.0.0

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 _LOG4SHIB_IDSAAPPENDER_HH
10#define _LOG4SHIB_IDSAAPPENDER_HH
11
12#include <log4shib/Portability.hh>
13#include <string>
14#include <stdarg.h>
15#include <idsa.h>
16#include <log4shib/AppenderSkeleton.hh>
17
18 namespace log4shib {
19
25 class IdsaAppender : public AppenderSkeleton {
26 public:
27
34 IdsaAppender(const std::string& name, const std::string& idsaName);
35 virtual ~IdsaAppender();
36
40 virtual bool reopen();
41
45 virtual void close();
46
51 virtual bool requiresLayout() const;
52
53 virtual void setLayout(Layout* layout);
54
55 protected:
56
60 virtual void open();
61
66 virtual void _append(const LoggingEvent& event);
67
68 const std::string _idsaName;
69
70 IDSA_CONNECTION *_idsaConnection;
71
72 };
73}
74
75#endif // _LOG4SHIB_IDSAAPPENDER_HH
76
AppenderSkeleton.hh
Portability.hh
log4shib::AppenderSkeleton
AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already takes care of...
Definition: AppenderSkeleton.hh:24
log4shib::IdsaAppender
IdsaAppender is an Appender that sends LoggingEvents to the IDS/A logger and reference monitor by Mar...
Definition: IdsaAppender.hh:25
log4shib::IdsaAppender::_idsaName
const std::string _idsaName
Definition: IdsaAppender.hh:68
log4shib::IdsaAppender::~IdsaAppender
virtual ~IdsaAppender()
log4shib::IdsaAppender::setLayout
virtual void setLayout(Layout *layout)
Set the Layout for this appender.
log4shib::IdsaAppender::_append
virtual void _append(const LoggingEvent &event)
Sends a LoggingEvent to idsa.
log4shib::IdsaAppender::requiresLayout
virtual bool requiresLayout() const
The IdsaAppender does its own Layout.
log4shib::IdsaAppender::close
virtual void close()
Calls idsa_close()
log4shib::IdsaAppender::IdsaAppender
IdsaAppender(const std::string &name, const std::string &idsaName)
Instantiate an IdsaAppender with given name and name.
log4shib::IdsaAppender::reopen
virtual bool reopen()
Calls idsa_open() and idsa_close()
log4shib::IdsaAppender::_idsaConnection
IDSA_CONNECTION * _idsaConnection
Definition: IdsaAppender.hh:70
log4shib::IdsaAppender::open
virtual void open()
Calls idsa_open().
log4shib::Layout
Extend this abstract class to create your own log layout format.
Definition: Layout.hh:22
log4shib
The top level namespace for all 'Log for C++' types and classes.
Definition: AbortAppender.hh:16
log4shib::LoggingEvent
The internal representation of logging events.
Definition: LoggingEvent.hh:32