org.progeeks.util.log
Class LogEvent

java.lang.Object
  extended by org.progeeks.util.log.LogEvent

public class LogEvent
extends java.lang.Object

Holds the information about a single logging event.

Version:
$Revision: 1.2 $
Author:
Paul Speed

Constructor Summary
LogEvent(org.apache.log4j.spi.LoggingEvent event)
           
 
Method Summary
 java.lang.String getContext()
          Returns the context string for the event.
 LogLevel getLogLevel()
          Returns the level of the logging event.
 java.lang.String getLogName()
          Returns the name of the Log object that generated the event.
 java.lang.String getMessage()
          Returns the application supplied logging message.
 java.lang.String getThreadName()
          Returns the name of the thread in which this event was generated.
 java.lang.Throwable getThrowable()
          Returns a Throwable object that may be attached to the event.
 long getTime()
          Returns the system time at which the event occurred.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogEvent

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

getLogName

public java.lang.String getLogName()
Returns the name of the Log object that generated the event.


getLogLevel

public LogLevel getLogLevel()
Returns the level of the logging event.


getContext

public java.lang.String getContext()
Returns the context string for the event.


getMessage

public java.lang.String getMessage()
Returns the application supplied logging message.


getThreadName

public java.lang.String getThreadName()
Returns the name of the thread in which this event was generated.


getThrowable

public java.lang.Throwable getThrowable()
Returns a Throwable object that may be attached to the event.


getTime

public long getTime()
Returns the system time at which the event occurred.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2003 Paul Speed. All Rights Reserved.