org.arakhne.logging
Class LoggerEvent
java.lang.Object
java.util.EventObject
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
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 messagemessage - is the text of the message.exception - is the exception associated to the message.
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.