org.arakhne.logging
Class LoggerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.arakhne.logging.LoggerEvent
All Implemented Interfaces:
Serializable

public class LoggerEvent
extends EventObject

This class provides a description of a logging event.

Version:
1.7 (rev:285) 2011-10-14 12:02:59
Author:
Stéphane GALLAND
See Also:
Logger, Serialized Form
Maven Group Id:
org.arakhne.afc
Maven Artifact Id:
arakhneLogger

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LoggerEvent(Object source, Logger logger, LogLevel level, String message)
           
LoggerEvent(Object source, Logger logger, LogLevel level, String message, Throwable exception)
           
 
Method Summary
 Throwable getException()
          Replies the exception associated to this event.
 Logger getLogger()
          Replies the logger which has received the event.
 LogLevel getLogLevel()
          Replies the log level of the event.
 String getMessage()
          Replies the message in the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggerEvent

public LoggerEvent(Object source,
                   Logger logger,
                   LogLevel level,
                   String message)
Parameters:
source - is the source of the event.
logger - is the logger which has received the message.
level - is the level of the message.
message - is the text of the message.

LoggerEvent

public LoggerEvent(Object source,
                   Logger logger,
                   LogLevel level,
                   String message,
                   Throwable exception)
Parameters:
source - is the source of the event.
logger - is the logger which has received the message.
level - is the level of the message
message - is the text of the message.
exception - is the exception associated to the message.
Method Detail

getLogger

public Logger getLogger()
Replies the logger which has received the event.

Returns:
the logger which as receivd the log.
Since:
1.2

getLogLevel

public LogLevel getLogLevel()
Replies the log level of the event.

Returns:
the log level of the event.

getMessage

public String getMessage()
Replies the message in the event.

Returns:
the message in the event.

getException

public Throwable getException()
Replies the exception associated to this event.

Returns:
the associated exception or null


Copyright © 2006-2011 Arakhnê.org Consortium. All rights reserved under LGPL license terms.