NTEventLogAppender Class Reference

Inheritance diagram for NTEventLogAppender:

Inheritance graph
[legend]
Collaboration diagram for NTEventLogAppender:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void activateOptions ()
virtual void close ()
virtual void setOption (const String &option, const String &value)
bool requiresLayout () const

Protected Member Functions

virtual void append (const spi::LoggingEventPtr &event)

Detailed Description

Appends log events to NT EventLog.


Member Function Documentation

virtual void activateOptions  )  [virtual]
 

Derived appenders should override this method if option structure requires it.

Reimplemented from AppenderSkeleton.

virtual void append const spi::LoggingEventPtr event  )  [protected, virtual]
 

Subclasses of AppenderSkeleton should implement this method to perform actual logging. See also AppenderSkeleton::doAppend method.

Implements AppenderSkeleton.

virtual void close  )  [virtual]
 

Release any resources allocated within the appender such as file handles, network connections, etc.

It is a programming error to append to a closed appender.

Implements Appender.

bool requiresLayout  )  const [inline, virtual]
 

The SocketAppender does not use a layout. Hence, this method returns false.

Implements Appender.

virtual void setOption const String &  option,
const String &  value
[virtual]
 

Set option to value.

The handling of each option depends on the OptionHandler instance. Some options may become active immediately whereas other may be activated only when activateOptions is called.

Reimplemented from AppenderSkeleton.


The documentation for this class was generated from the following file:
  • nteventlogappender.h

Copyright © 1999-2004, Apache Software Foundation