org.ops4j.pax.logging.internal
Class PaxLoggingEventImpl

java.lang.Object
  extended by org.ops4j.pax.logging.internal.PaxLoggingEventImpl
All Implemented Interfaces:
java.io.Serializable, PaxLoggingEvent

public class PaxLoggingEventImpl
extends java.lang.Object
implements java.io.Serializable, PaxLoggingEvent

The internal representation of logging events. When an affirmative decision is made to log then a LoggingEvent instance is created. This instance is passed around to the different log4j components.

This class is of concern to those wishing to extend log4j.

Since:
0.8.2
Author:
Ceki Gülcü, James P. Cakalic, Niclas Hedhman
See Also:
Serialized Form

Constructor Summary
PaxLoggingEventImpl(org.apache.log4j.spi.LoggingEvent event)
           
 
Method Summary
 PaxLevel getLevel()
          Return the level of this event.
 PaxLocationInfo getLocationInformation()
          Set the location information for this logging event.
 java.lang.String getLoggerName()
          Return the name of the logger.
 java.lang.String getMessage()
          Return the message for this logging event.
 java.lang.String getRenderedMessage()
           
 java.lang.String getThreadName()
           
 java.lang.String[] getThrowableStrRep()
          Return this event's throwable's string[] representaion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaxLoggingEventImpl

public PaxLoggingEventImpl(org.apache.log4j.spi.LoggingEvent event)
Method Detail

getLocationInformation

public PaxLocationInfo getLocationInformation()
Set the location information for this logging event. The collected information is cached for future use.

Specified by:
getLocationInformation in interface PaxLoggingEvent

getLevel

public PaxLevel getLevel()
Return the level of this event. Use this form instead of directly accessing the level field.

Specified by:
getLevel in interface PaxLoggingEvent

getLoggerName

public java.lang.String getLoggerName()
Return the name of the logger. Use this form instead of directly accessing the categoryName field.

Specified by:
getLoggerName in interface PaxLoggingEvent

getMessage

public java.lang.String getMessage()
Return the message for this logging event.

Specified by:
getMessage in interface PaxLoggingEvent

getRenderedMessage

public java.lang.String getRenderedMessage()
Specified by:
getRenderedMessage in interface PaxLoggingEvent

getThreadName

public java.lang.String getThreadName()
Specified by:
getThreadName in interface PaxLoggingEvent

getThrowableStrRep

public java.lang.String[] getThrowableStrRep()
Return this event's throwable's string[] representaion.

Specified by:
getThrowableStrRep in interface PaxLoggingEvent


Copyright © 2008. All Rights Reserved.