net.sf.panoptes.module.log4j
Class LoggingEventInfo

java.lang.Object
  |
  +--net.sf.panoptes.module.log4j.LoggingEventInfo
All Implemented Interfaces:
java.lang.Comparable

public class LoggingEventInfo
extends java.lang.Object
implements java.lang.Comparable

Wraps a LoggingEvent instance and information regarding it such as the source host and which repository it was added to.

Author:
Dag Liodden

Constructor Summary
LoggingEventInfo(LoggerRepository repository, org.apache.log4j.spi.LoggingEvent event, java.lang.String sourceHost)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String getHost()
           
 org.apache.log4j.spi.LoggingEvent getLoggingEvent()
           
 LoggerRepository getRepository()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggingEventInfo

public LoggingEventInfo(LoggerRepository repository,
                        org.apache.log4j.spi.LoggingEvent event,
                        java.lang.String sourceHost)
Method Detail

getHost

public java.lang.String getHost()
Returns:

getLoggingEvent

public org.apache.log4j.spi.LoggingEvent getLoggingEvent()
Returns:

toString

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

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getRepository

public LoggerRepository getRepository()
Returns:


Copyright © 2003 . All Rights Reserved.