Loading...
Searching...
No Matches
IdsaAppender.hh
Go to the documentation of this file.
/*
* IdsaAppender.hh
*
* Copyright 2000, Marc Welz
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4SHIB_IDSAAPPENDER_HH
#define _LOG4SHIB_IDSAAPPENDER_HH
#include <log4shib/Portability.hh>
#include <string>
#include <stdarg.h>
#include <idsa.h>
#include <log4shib/AppenderSkeleton.hh>
namespace log4shib {
class IdsaAppender : public AppenderSkeleton {
public:
IdsaAppender(const std::string& name, const std::string& idsaName);
virtual ~IdsaAppender();
virtual bool reopen();
virtual void close();
virtual bool requiresLayout() const;
virtual void setLayout(Layout* layout);
protected:
virtual void open();
virtual void _append(const LoggingEvent& event);
const std::string _idsaName;
IDSA_CONNECTION *_idsaConnection;
};
}
#endif // _LOG4SHIB_IDSAAPPENDER_HH
AppenderSkeleton.hh
Portability.hh
log4shib::AppenderSkeleton::AppenderSkeleton
AppenderSkeleton(const std::string &name)
Constructor for AppenderSkeleton.
Definition AppenderSkeleton.cpp:15
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