| Server IP : 216.92.14.13 / Your IP : 216.73.216.171 Web Server : Apache System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : rmlac2fmr ( 1040637) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/include/log4shib/ |
Upload 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 {
/**
* 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.
**/
class IdsaAppender : public AppenderSkeleton {
public:
/**
* Instantiate an IdsaAppender with given name and name.
* Unlike the syslog API, idsa allows multiple connections.
* @param name The name of the Appender
* @param idsaName The service parameter of idsa
**/
IdsaAppender(const std::string& name, const std::string& idsaName);
virtual ~IdsaAppender();
/**
* Calls idsa_open() and idsa_close()
**/
virtual bool reopen();
/**
* Calls idsa_close()
**/
virtual void close();
/**
* The IdsaAppender does its own Layout.
* @returns false
**/
virtual bool requiresLayout() const;
virtual void setLayout(Layout* layout);
protected:
/**
* Calls idsa_open().
**/
virtual void open();
/**
* Sends a LoggingEvent to idsa.
* @param event the LoggingEvent to log.
**/
virtual void _append(const LoggingEvent& event);
const std::string _idsaName;
IDSA_CONNECTION *_idsaConnection;
};
}
#endif // _LOG4SHIB_IDSAAPPENDER_HH