Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions

SocketAppender Class Reference

Sends LoggingEvent objects to a remote a log server, usually Apache Chainsaw. More...

Inherits log4cxx::net::SocketAppenderSkeleton.

List of all members.

Classes

class  ClazzSocketAppender

Public Member Functions

virtual const helpers::ClassgetClass () const
const void * cast (const helpers::Class &clazz) const
bool instanceof (const helpers::Class &clazz) const
 SocketAppender ()
 ~SocketAppender ()
 SocketAppender (helpers::InetAddressPtr &address, int port)
 Connects to remote server at address and port.
 SocketAppender (const LogString &host, int port)
 Connects to remote server at host and port.

Static Public Member Functions

static const helpers::ClassgetStaticClass ()
static const
log4cxx::helpers::ClassRegistration
registerClass ()

Static Public Attributes

static int DEFAULT_PORT
 The default port number of remote logging server (4560).
static int DEFAULT_RECONNECTION_DELAY
 The default reconnection delay (30000 milliseconds or 30 seconds).

Protected Member Functions

virtual void setSocket (log4cxx::helpers::SocketPtr &socket, log4cxx::helpers::Pool &p)
virtual void cleanUp (log4cxx::helpers::Pool &p)
virtual int getDefaultDelay () const
virtual int getDefaultPort () const
void append (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool)
 Subclasses of AppenderSkeleton should implement this method to perform actual logging.

Detailed Description

Sends LoggingEvent objects to a remote a log server, usually Apache Chainsaw.

The SocketAppender has the following properties:


Constructor & Destructor Documentation

SocketAppender (  ) 
~SocketAppender (  ) 
SocketAppender ( helpers::InetAddressPtr &  address,
int  port 
)

Connects to remote server at address and port.

SocketAppender ( const LogString host,
int  port 
)

Connects to remote server at host and port.


Member Function Documentation

void append ( const spi::LoggingEventPtr event,
log4cxx::helpers::Pool p 
) [protected, virtual]

Subclasses of AppenderSkeleton should implement this method to perform actual logging.

See also AppenderSkeleton::doAppend method.

Implements AppenderSkeleton.

const void* cast ( const helpers::Class clazz  )  const [inline, virtual]

Implements Object.

virtual void cleanUp ( log4cxx::helpers::Pool p  )  [protected, virtual]
virtual const helpers::Class& getClass (  )  const [virtual]

Reimplemented from Object.

virtual int getDefaultDelay (  )  const [protected, virtual]
virtual int getDefaultPort (  )  const [protected, virtual]
static const helpers::Class& getStaticClass (  )  [static]

Reimplemented from Object.

bool instanceof ( const helpers::Class clazz  )  const [inline, virtual]

Implements Object.

static const log4cxx::helpers::ClassRegistration& registerClass (  )  [static]

Reimplemented from Object.

virtual void setSocket ( log4cxx::helpers::SocketPtr &  socket,
log4cxx::helpers::Pool p 
) [protected, virtual]

Member Data Documentation

int DEFAULT_PORT [static]

The default port number of remote logging server (4560).

The default reconnection delay (30000 milliseconds or 30 seconds).


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