ariba.util.log
Class LoggingEvent

java.lang.Object
  extended by org.apache.log4j.spi.LoggingEvent
      extended by ariba.util.log.LoggingEvent
All Implemented Interfaces:
java.io.Serializable

public class LoggingEvent
extends org.apache.log4j.spi.LoggingEvent

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 apenders we registered.

This class also adds support for custom tag and localized messages.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.log4j.spi.LoggingEvent
categoryName, fqnOfCategoryClass, level, timeStamp
 
Constructor Summary
LoggingEvent(java.lang.String fqnOfCategoryClass, org.apache.log4j.Category logger, long timeStamp, org.apache.log4j.Priority priority, java.lang.String messageId, java.lang.Object message, java.lang.Throwable throwable)
          Instantiates an instance of this class.
LoggingEvent(java.lang.String fqnOfCategoryClass, org.apache.log4j.Category logger, org.apache.log4j.Priority priority, java.lang.String messageId, java.lang.Object message, java.lang.Throwable throwable)
          Instantiates an instance of this class.
 
Method Summary
 java.lang.String getCallerThreadDebugState()
           
 java.lang.String getCustomTag()
           
static CustomTag getCustomTagImpl()
           
 java.lang.String getMessageId()
           
static void setCustomTagImpl(CustomTag impl)
           
 void setMessageId(java.lang.String messageId)
           
 
Methods inherited from class org.apache.log4j.spi.LoggingEvent
getFQNOfLoggerClass, getLevel, getLocationInformation, getLogger, getLoggerName, getMDC, getMDCCopy, getMessage, getNDC, getProperties, getProperty, getPropertyKeySet, getRenderedMessage, getStartTime, getThreadName, getThrowableInformation, getThrowableStrRep, getTimeStamp, locationInformationExists, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingEvent

public LoggingEvent(java.lang.String fqnOfCategoryClass,
                    org.apache.log4j.Category logger,
                    long timeStamp,
                    org.apache.log4j.Priority priority,
                    java.lang.String messageId,
                    java.lang.Object message,
                    java.lang.Throwable throwable)
Instantiates an instance of this class.

Parameters:
fqnOfCategoryClass - the fully qualified class name of the logging category
logger - the logger that logs this event
timeStamp - The time in millis since the Java epoch that this
priority - the prority of the event
messageId - the message id for localization
message - the log message
throwable - The stackTrace associated with this event if any. May be null if no stack trace generated.

LoggingEvent

public LoggingEvent(java.lang.String fqnOfCategoryClass,
                    org.apache.log4j.Category logger,
                    org.apache.log4j.Priority priority,
                    java.lang.String messageId,
                    java.lang.Object message,
                    java.lang.Throwable throwable)
Instantiates an instance of this class.

Parameters:
fqnOfCategoryClass - the fully qualified class name of the logging category
logger - the logger that logs this event
priority - the prority of the event
messageId - the message id for localization
message - the log message
throwable - The stackTrace associated with this event if any. May be null if no stack trace generated.
Method Detail

setCustomTagImpl

public static void setCustomTagImpl(CustomTag impl)

getCustomTagImpl

public static CustomTag getCustomTagImpl()

getCustomTag

public java.lang.String getCustomTag()

setMessageId

public void setMessageId(java.lang.String messageId)

getMessageId

public java.lang.String getMessageId()

getCallerThreadDebugState

public java.lang.String getCallerThreadDebugState()


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.