Package org.xwiki.logging
Class LogTree
-
- All Implemented Interfaces:
Serializable
,CharSequence
,Iterable<LogEvent>
,org.slf4j.Logger
,Logger
,BeginEvent
,Event
public class LogTree extends LogTreeNode implements Logger
Logs organized as a tree.- Since:
- 5.4M1
- Version:
- $Id: 1ec9f581b6c4133a26677b4bd46106e83f148927 $
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.xwiki.logging.LogTreeNode
children
-
Fields inherited from class org.xwiki.logging.event.LogEvent
MARKER_BEGIN, MARKER_END
-
Fields inherited from interface org.xwiki.logging.Logger
ROOT_MARKER
-
-
Constructor Summary
Constructors Constructor Description LogTree()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String msg)
void
debug(String format, Object arg)
void
debug(String format, Object... arguments)
void
debug(String format, Object arg1, Object arg2)
void
debug(String msg, Throwable t)
void
debug(org.slf4j.Marker marker, String msg)
void
debug(org.slf4j.Marker marker, String format, Object arg)
void
debug(org.slf4j.Marker marker, String format, Object... arguments)
void
debug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
debug(org.slf4j.Marker marker, String msg, Throwable t)
void
error(String msg)
void
error(String format, Object arg)
void
error(String format, Object... arguments)
void
error(String format, Object arg1, Object arg2)
void
error(String msg, Throwable t)
void
error(org.slf4j.Marker marker, String msg)
void
error(org.slf4j.Marker marker, String format, Object arg)
void
error(org.slf4j.Marker marker, String format, Object... arguments)
void
error(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
error(org.slf4j.Marker marker, String msg, Throwable t)
String
getName()
void
info(String msg)
void
info(String format, Object arg)
void
info(String format, Object... arguments)
void
info(String format, Object arg1, Object arg2)
void
info(String msg, Throwable t)
void
info(org.slf4j.Marker marker, String msg)
void
info(org.slf4j.Marker marker, String format, Object arg)
void
info(org.slf4j.Marker marker, String format, Object... arguments)
void
info(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
info(org.slf4j.Marker marker, String msg, Throwable t)
boolean
isDebugEnabled()
boolean
isDebugEnabled(org.slf4j.Marker marker)
boolean
isErrorEnabled()
boolean
isErrorEnabled(org.slf4j.Marker marker)
boolean
isInfoEnabled()
boolean
isInfoEnabled(org.slf4j.Marker marker)
boolean
isTraceEnabled()
boolean
isTraceEnabled(org.slf4j.Marker marker)
boolean
isWarnEnabled()
boolean
isWarnEnabled(org.slf4j.Marker marker)
void
log(org.slf4j.Logger targetLogger)
Copy the stored log into a passedLogger
.protected LogEvent
log(org.slf4j.Marker marker, LogLevel level, String format, Object[] arguments)
protected LogEvent
log(org.slf4j.Marker marker, LogLevel level, String format, Object[] arguments, Throwable throwable)
void
log(LogEvent logEvent)
protected LogEvent
log(LogLevel level, String format, Object[] arguments)
protected LogEvent
log(LogLevel level, String format, Object[] arguments, Throwable throwable)
void
pop()
Make log tree caret go the parent next sibling.void
trace(String msg)
void
trace(String format, Object arg)
void
trace(String format, Object... arguments)
void
trace(String format, Object arg1, Object arg2)
void
trace(String msg, Throwable t)
void
trace(org.slf4j.Marker marker, String msg)
void
trace(org.slf4j.Marker marker, String format, Object arg)
void
trace(org.slf4j.Marker marker, String format, Object... arguments)
void
trace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
trace(org.slf4j.Marker marker, String msg, Throwable t)
void
warn(String msg)
void
warn(String format, Object arg)
void
warn(String format, Object... arguments)
void
warn(String format, Object arg1, Object arg2)
void
warn(String msg, Throwable t)
void
warn(org.slf4j.Marker marker, String msg)
void
warn(org.slf4j.Marker marker, String format, Object arg)
void
warn(org.slf4j.Marker marker, String format, Object... arguments)
void
warn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
warn(org.slf4j.Marker marker, String msg, Throwable t)
-
Methods inherited from class org.xwiki.logging.LogTreeNode
getLogs, getLogsFrom, iterator, iterator, size
-
Methods inherited from class org.xwiki.logging.event.LogEvent
equals, getLevel, getTimeStamp, hashCode, matches, toString
-
Methods inherited from class org.xwiki.logging.Message
charAt, equals, getArgumentArray, getFormattedMessage, getMarker, getMessage, getMessageElements, getThrowable, getTranslationKey, length, subSequence
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
log
public void log(org.slf4j.Logger targetLogger)
Description copied from class:LogEvent
Copy the stored log into a passedLogger
.
-
log
protected LogEvent log(LogLevel level, String format, Object[] arguments)
- Parameters:
level
- the log levelformat
- the log messagearguments
- the event arguments to insert in the message- Returns:
- the created
LogEvent
instance
-
log
protected LogEvent log(org.slf4j.Marker marker, LogLevel level, String format, Object[] arguments)
- Parameters:
marker
- the log markerlevel
- the log levelformat
- the log messagearguments
- the event arguments to insert in the message- Returns:
- the created
LogEvent
instance
-
log
protected LogEvent log(LogLevel level, String format, Object[] arguments, Throwable throwable)
- Parameters:
level
- the log levelformat
- the log messagearguments
- the event arguments to insert in the messagethrowable
- the throwable associated to the event- Returns:
- the created
LogEvent
instance
-
log
protected LogEvent log(org.slf4j.Marker marker, LogLevel level, String format, Object[] arguments, Throwable throwable)
- Parameters:
marker
- the log markerlevel
- the log levelformat
- the log messagearguments
- the event arguments to insert in the messagethrowable
- the throwable associated to the event- Returns:
- the created
LogEvent
instance
-
log
public void log(LogEvent logEvent)
-
pop
public void pop()
Make log tree caret go the parent next sibling.
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.slf4j.Logger
-
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interfaceorg.slf4j.Logger
-
trace
public void trace(String msg)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(String format, Object arg)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(String format, Object arg1, Object arg2)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(String format, Object... arguments)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
isTraceEnabled
public boolean isTraceEnabled(org.slf4j.Marker marker)
- Specified by:
isTraceEnabled
in interfaceorg.slf4j.Logger
-
trace
public void trace(org.slf4j.Marker marker, String msg)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(org.slf4j.Marker marker, String format, Object arg)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(org.slf4j.Marker marker, String format, Object... arguments)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(org.slf4j.Marker marker, String msg, Throwable t)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interfaceorg.slf4j.Logger
-
debug
public void debug(String msg)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(String format, Object arg)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(String format, Object arg1, Object arg2)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(String format, Object... arguments)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
isDebugEnabled
public boolean isDebugEnabled(org.slf4j.Marker marker)
- Specified by:
isDebugEnabled
in interfaceorg.slf4j.Logger
-
debug
public void debug(org.slf4j.Marker marker, String msg)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(org.slf4j.Marker marker, String format, Object arg)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(org.slf4j.Marker marker, String format, Object... arguments)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(org.slf4j.Marker marker, String msg, Throwable t)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interfaceorg.slf4j.Logger
-
info
public void info(String msg)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(String format, Object arg1, Object arg2)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(String format, Object... arguments)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
isInfoEnabled
public boolean isInfoEnabled(org.slf4j.Marker marker)
- Specified by:
isInfoEnabled
in interfaceorg.slf4j.Logger
-
info
public void info(org.slf4j.Marker marker, String msg)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(org.slf4j.Marker marker, String format, Object arg)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(org.slf4j.Marker marker, String format, Object... arguments)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(org.slf4j.Marker marker, String msg, Throwable t)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interfaceorg.slf4j.Logger
-
warn
public void warn(String msg)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(String format, Object arg1, Object arg2)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(String format, Object... arguments)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
isWarnEnabled
public boolean isWarnEnabled(org.slf4j.Marker marker)
- Specified by:
isWarnEnabled
in interfaceorg.slf4j.Logger
-
warn
public void warn(org.slf4j.Marker marker, String msg)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(org.slf4j.Marker marker, String format, Object arg)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(org.slf4j.Marker marker, String format, Object... arguments)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(org.slf4j.Marker marker, String msg, Throwable t)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interfaceorg.slf4j.Logger
-
error
public void error(String msg)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(String format, Object arg)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(String format, Object arg1, Object arg2)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(String format, Object... arguments)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
isErrorEnabled
public boolean isErrorEnabled(org.slf4j.Marker marker)
- Specified by:
isErrorEnabled
in interfaceorg.slf4j.Logger
-
error
public void error(org.slf4j.Marker marker, String msg)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(org.slf4j.Marker marker, String format, Object arg)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(org.slf4j.Marker marker, String format, Object... arguments)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
-