StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
log4cxx::db::StWsAppender Class Reference
Inheritance diagram for log4cxx::db::StWsAppender:

Public Member Functions

virtual void setOption (const String &option, const String &value)
 
void append (const spi::LoggingEventPtr &event)
 
virtual void close ()
 
virtual bool requiresLayout () const
 

Protected Member Functions

String getLogStatement (const spi::LoggingEventPtr &event)
 

Protected Attributes

std::list< spi::LoggingEventPtr > buffer
 
unsigned long fLastId
 

Detailed Description

Definition at line 18 of file StWsAppender.h.

Member Function Documentation

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

Adds the event to the buffer. When full the buffer is flushed.

Definition at line 52 of file StWsAppender.cxx.

String StWsAppender::getLogStatement ( const spi::LoggingEventPtr &  event)
protected

By default getLogStatement sends the event to the required Layout object. The layout will format the given pattern into a workable SQL string.

Overriding this provides direct access to the LoggingEvent when constructing the logging statement.

Definition at line 80 of file StWsAppender.cxx.

virtual bool log4cxx::db::StWsAppender::requiresLayout ( ) const
inlinevirtual

StWsAppender requires a layout.

Definition at line 69 of file StWsAppender.h.

void StWsAppender::setOption ( const String &  option,
const String &  value 
)
virtual

Set options

Definition at line 34 of file StWsAppender.cxx.

Member Data Documentation

std::list<spi::LoggingEventPtr> log4cxx::db::StWsAppender::buffer
protected

ArrayList holding the buffer of Logging Events.

Definition at line 24 of file StWsAppender.h.


The documentation for this class was generated from the following files: