Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

log4cpp::IdsaAppender Class Reference

IdsaAppender is an Appender that sends LoggingEvents to the IDS/A logger and reference monitor by Marc Welz. More...

#include <IdsaAppender.hh>

Inheritance diagram for log4cpp::IdsaAppender:

Inheritance graph
[legend]
Collaboration diagram for log4cpp::IdsaAppender:

Collaboration graph
[legend]
List of all members.

Public Methods

 IdsaAppender (const std::string &name, const std::string &idsaName)
 Instantiate an IdsaAppender with given name and name. More...

virtual ~IdsaAppender ()
virtual bool reopen ()
 Calls idsa_open() and idsa_close(). More...

virtual void close ()
 Calls idsa_close(). More...

virtual bool requiresLayout () const
 The IdsaAppender does its own Layout. More...

virtual void setLayout (Layout *layout)
 Set the Layout for this appender. More...


Protected Methods

virtual void open ()
 Calls idsa_open(). More...

virtual void _append (const LoggingEvent &event)
 Sends a LoggingEvent to idsa. More...


Protected Attributes

const std::string _idsaName
IDSA_CONNECTION* _idsaConnection

Detailed Description

IdsaAppender is an Appender that sends LoggingEvents to the IDS/A logger and reference monitor by Marc Welz.

See http://jade.cs.uct.ac.za/idsa/ for more information on IDS/A.


Constructor & Destructor Documentation

log4cpp::IdsaAppender::IdsaAppender ( const std::string & name,
const std::string & idsaName )
 

Instantiate an IdsaAppender with given name and name.

Unlike the syslog API, idsa allows multiple connections.

Parameters:
name   The name of the Appender
idsaName   The service parameter of idsa

log4cpp::IdsaAppender::~IdsaAppender ( ) [virtual]
 


Member Function Documentation

void log4cpp::IdsaAppender::_append ( const LoggingEvent & event ) [protected, virtual]
 

Sends a LoggingEvent to idsa.

Parameters:
event   the LoggingEvent to log.

Reimplemented from log4cpp::AppenderSkeleton.

void log4cpp::IdsaAppender::close ( ) [virtual]
 

Calls idsa_close().

Reimplemented from log4cpp::AppenderSkeleton.

void log4cpp::IdsaAppender::open ( ) [protected, virtual]
 

Calls idsa_open().

bool log4cpp::IdsaAppender::reopen ( ) [virtual]
 

Calls idsa_open() and idsa_close().

Reimplemented from log4cpp::AppenderSkeleton.

bool log4cpp::IdsaAppender::requiresLayout ( ) const [virtual]
 

The IdsaAppender does its own Layout.

Returns:
false

Reimplemented from log4cpp::AppenderSkeleton.

void log4cpp::IdsaAppender::setLayout ( Layout * layout ) [virtual]
 

Set the Layout for this appender.

Parameters:
layout   The layout to use.

Reimplemented from log4cpp::AppenderSkeleton.


Member Data Documentation

IDSA_CONNECTION * log4cpp::IdsaAppender::_idsaConnection [protected]
 

const std::string log4cpp::IdsaAppender::_idsaName [protected]
 


The documentation for this class was generated from the following file:
Generated at Mon Jan 28 01:40:37 2002 for log4cpp by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001