public class LogEvent extends Message implements Event
The event also send the following parameters:
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Marker |
MARKER_BEGIN
The marker to use to indicate that we start a group of logs.
|
static org.slf4j.Marker |
MARKER_END
The marker to use to indicate that we stop a group of logs.
|
| Constructor and Description |
|---|
LogEvent()
Matches any
LogEvent. |
LogEvent(LogEvent logEvent) |
LogEvent(LogLevel level,
String message,
Object[] argumentArray,
Throwable throwable) |
LogEvent(org.slf4j.Marker marker,
LogLevel level,
String message,
Object[] argumentArray,
Throwable throwable) |
LogEvent(org.slf4j.Marker marker,
LogLevel level,
String message,
Object[] argumentArray,
Throwable throwable,
long timeStamp) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
LogLevel |
getLevel() |
long |
getTimeStamp() |
int |
hashCode() |
void |
log(org.slf4j.Logger targetLogger)
Copy the stored log into a passed
Logger. |
boolean |
matches(Object otherEvent) |
String |
toString() |
charAt, equals, getArgumentArray, getFormattedMessage, getMarker, getMessage, getMessageElements, getThrowable, getTranslationKey, length, subSequencepublic static final org.slf4j.Marker MARKER_BEGIN
public static final org.slf4j.Marker MARKER_END
public LogEvent()
LogEvent.public LogEvent(LogEvent logEvent)
logEvent - the log event to copypublic LogEvent(LogLevel level, String message, Object[] argumentArray, Throwable throwable)
level - the log levelmessage - the log messageargumentArray - the event arguments to insert in the messagethrowable - the throwable associated to the eventpublic LogEvent(org.slf4j.Marker marker,
LogLevel level,
String message,
Object[] argumentArray,
Throwable throwable)
marker - the log markerlevel - the log levelmessage - the log messageargumentArray - the event arguments to insert in the messagethrowable - the throwable associated to the eventpublic LogEvent(org.slf4j.Marker marker,
LogLevel level,
String message,
Object[] argumentArray,
Throwable throwable,
long timeStamp)
marker - the log markerlevel - the log levelmessage - the log messageargumentArray - the event arguments to insert in the messagethrowable - the throwable associated to the eventtimeStamp - the number of milliseconds elapsed from 1/1/1970 until logging event was created.public void log(org.slf4j.Logger targetLogger)
Logger.targetLogger - the logger where to copy the stored logpublic LogLevel getLevel()
public long getTimeStamp()
public String toString()
toString in interface CharSequencetoString in class MessageCopyright © 2004–2017 XWiki. All rights reserved.