Classes | Public Member Functions | Static Public Member Functions

SimpleLayout Class Reference

SimpleLayout consists of the level of the log statement, followed by " - " and then the log message itself. More...

Inherits log4cxx::Layout.

List of all members.

Classes

class  ClazzSimpleLayout

Public Member Functions

virtual const helpers::ClassgetClass () const
const void * cast (const helpers::Class &clazz) const
bool instanceof (const helpers::Class &clazz) const
virtual void format (LogString &output, const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool) const
 Returns the log statement in a format consisting of the level, followed by " - " and then the message.
bool ignoresThrowable () const
 The SimpleLayout does not handle the throwable contained within LoggingEvents.
virtual void activateOptions (log4cxx::helpers::Pool &)
virtual void setOption (const LogString &, const LogString &)

Static Public Member Functions

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

Detailed Description

SimpleLayout consists of the level of the log statement, followed by " - " and then the log message itself.

For example,

                DEBUG - Hello world
        

PatternLayout offers a much more powerful alternative.


Member Function Documentation

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

Reimplemented from Layout.

virtual void format ( LogString output,
const spi::LoggingEventPtr event,
log4cxx::helpers::Pool pool 
) const [virtual]

Returns the log statement in a format consisting of the level, followed by " - " and then the message.

For example,

 INFO - "A message"
                
Returns:
A byte array in SimpleLayout format.

Implements Layout.

virtual const helpers::Class& getClass (  )  const [virtual]

Reimplemented from Layout.

static const helpers::Class& getStaticClass (  )  [static]

Reimplemented from Layout.

bool ignoresThrowable (  )  const [inline, virtual]

The SimpleLayout does not handle the throwable contained within LoggingEvents.

Thus, it returns true.

Implements Layout.

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

Reimplemented from Layout.

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

Reimplemented from Layout.

virtual void setOption ( const LogString ,
const LogString  
) [inline, virtual]

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