org.xwiki.logging.event
Class LogEvent
java.lang.Object
org.xwiki.logging.event.LogEvent
- All Implemented Interfaces:
- Event
@Component
@Singleton
public class LogEvent
- extends Object
- implements Event
Sent when logger is called.
- Since:
- 3.2M1
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogEvent
public LogEvent()
- Matches any
LogEvent.
LogEvent
public LogEvent(LogLevel level,
String message,
Object[] argumentArray,
Throwable throwable)
- Parameters:
level - the log levelmessage - the log messageargumentArray - the event arguments to insert in the messagethrowable - the throwable associated to the event
matches
public boolean matches(Object otherEvent)
- Specified by:
matches in interface Event
getLevel
public LogLevel getLevel()
- Returns:
- the log level
getMessage
public String getMessage()
- Returns:
- the log message
getArgumentArray
public Object[] getArgumentArray()
- Returns:
- the event arguments to insert in the message
getThrowable
public Throwable getThrowable()
- Returns:
- the throwable associated to the event
getFormattedMessage
public String getFormattedMessage()
- Returns:
- the formated version of the message
Copyright © 2004-2012 XWiki. All Rights Reserved.