|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.logging.event.LogEvent
public class LogEvent
Sent when logger is called.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
|
Object[] |
getArgumentArray()
|
String |
getFormattedMessage()
|
LogLevel |
getLevel()
|
org.slf4j.Marker |
getMarker()
|
String |
getMessage()
|
List<String> |
getMessageElements()
|
Throwable |
getThrowable()
|
String |
getTranslationKey()
|
int |
hashCode()
|
void |
log(org.slf4j.Logger targetLogger)
Copy the stored log into a passed Logger. |
boolean |
matches(Object otherEvent)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.slf4j.Marker MARKER_BEGIN
public static final org.slf4j.Marker MARKER_END
| Constructor Detail |
|---|
public LogEvent()
LogEvent.
public LogEvent(LogEvent logEvent)
logEvent - the log event to copy
public 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 event
public 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 event| Method Detail |
|---|
public void log(org.slf4j.Logger targetLogger)
Logger.
targetLogger - the logger where to copy the stored logpublic org.slf4j.Marker getMarker()
public LogLevel getLevel()
public String getMessage()
public Object[] getArgumentArray()
public Throwable getThrowable()
public String getFormattedMessage()
public List<String> getMessageElements()
public String getTranslationKey()
public boolean matches(Object otherEvent)
matches in interface Eventpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||