log4cpp:IdsaAppender (3)





NAME

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


SYNOPSIS

       #include <IdsaAppender.hh>

       Inherits log4cpp::AppenderSkeleton.

   Public Methods
       IdsaAppender (const std::string &name, const std::string &idsaName)
           Instantiate an IdsaAppender with given name and name.
       virtual ~IdsaAppender ()
       virtual bool reopen ()
           Calls idsa_open() and idsa_close().
       virtual void close ()
           Calls idsa_close().
       virtual bool requiresLayout () const
           The IdsaAppender does its own Layout.
       virtual void setLayout (Layout *layout)
           Set the Layout for this appender.

   Protected Methods
       virtual void open ()
           Calls idsa_open().
       virtual void _append (const LoggingEvent &event)
           Sends a LoggingEvent to idsa.

   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

   virtual log4cpp::IdsaAppender::~IdsaAppender () [virtual]
       Implements log4cpp::AppenderSkeleton.

   virtual void log4cpp::IdsaAppender::close () [virtual]
       Calls idsa_close().

       Implements log4cpp::AppenderSkeleton.

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

   virtual bool log4cpp::IdsaAppender::reopen () [virtual]
       Calls idsa_open() and idsa_close().

       Reimplemented from log4cpp::AppenderSkeleton.

   virtual bool log4cpp::IdsaAppender::requiresLayout () [virtual]
       The IdsaAppender does its own Layout.

       Returns:
           false

       Implements log4cpp::AppenderSkeleton.

   virtual void log4cpp::IdsaAppender::setLayout (Layout * layout) [virtual]
       Set the Layout for this appender.

       Parameters:

       layout The layout to use.

       Implements log4cpp::AppenderSkeleton.


MEMBER DATA DOCUMENTATION

   IDSA_CONNECTION* log4cpp::IdsaAppender::_idsaConnection [protected]
   const std::string log4cpp::IdsaAppender::_idsaName [protected]

AUTHOR

       Generated automatically by Doxygen for log4cpp from the source code.

log4cpp                           19 Aug 2003         log4cpp::IdsaAppender(3)