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: b332a1a65e2715cddc52c9162858d788d6828d1d $
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
getMessageElements
public List<String> getMessageElements()
- Returns:
- the log message cut in peaces
- Since:
- 4.2M1
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2004-2012 XWiki. All Rights Reserved.