org.xwiki.logging
Class LogQueue

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by java.util.concurrent.ConcurrentLinkedQueue<LogEvent>
              extended by org.xwiki.logging.LogQueue
All Implemented Interfaces:
Serializable, Iterable<LogEvent>, Collection<LogEvent>, Queue<LogEvent>, org.slf4j.Logger

public class LogQueue
extends ConcurrentLinkedQueue<LogEvent>
implements org.slf4j.Logger

A queue of LogEvents.

Since:
3.2M3
Version:
$Id: de0dd899a932ef348771951c0217ae8d63c1ca5d $
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
 
Constructor Summary
LogQueue()
           
 
Method Summary
 LogEvent addLogEvent(LogLevel level, String format, Object[] arguments)
           
 LogEvent addLogEvent(LogLevel level, String format, Object[] arguments, Throwable throwable)
           
 LogEvent addLogEvent(org.slf4j.Marker marker, LogLevel level, String format, Object[] arguments)
           
 LogEvent addLogEvent(org.slf4j.Marker marker, LogLevel level, String format, Object[] arguments, Throwable throwable)
           
 void debug(org.slf4j.Marker marker, String msg)
           
 void debug(org.slf4j.Marker marker, String format, Object... arguments)
           
 void debug(org.slf4j.Marker marker, String format, Object arg)
           
 void debug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
           
 void debug(org.slf4j.Marker marker, String msg, Throwable t)
           
 void debug(String msg)
           
 void debug(String format, Object... arguments)
           
 void debug(String format, Object arg)
           
 void debug(String format, Object arg1, Object arg2)
           
 void debug(String msg, Throwable t)
           
 void error(org.slf4j.Marker marker, String msg)
           
 void error(org.slf4j.Marker marker, String format, Object... arguments)
           
 void error(org.slf4j.Marker marker, String format, Object arg)
           
 void error(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
           
 void error(org.slf4j.Marker marker, String msg, Throwable t)
           
 void error(String msg)
           
 void error(String format, Object... arguments)
           
 void error(String format, Object arg)
           
 void error(String format, Object arg1, Object arg2)
           
 void error(String msg, Throwable t)
           
 List<LogEvent> getLogs(LogLevel level)
          Filter logs of a specific level.
 List<LogEvent> getLogsFrom(LogLevel level)
          Filter logs of a specific level.
 String getName()
           
 void info(org.slf4j.Marker marker, String msg)
           
 void info(org.slf4j.Marker marker, String format, Object... arguments)
           
 void info(org.slf4j.Marker marker, String format, Object arg)
           
 void info(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
           
 void info(org.slf4j.Marker marker, String msg, Throwable t)
           
 void info(String msg)
           
 void info(String format, Object... arguments)
           
 void info(String format, Object arg)
           
 void info(String format, Object arg1, Object arg2)
           
 void info(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 trace(org.slf4j.Marker marker, String msg)
           
 void trace(org.slf4j.Marker marker, String format, Object... arguments)
           
 void trace(org.slf4j.Marker marker, String format, Object arg)
           
 void trace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
           
 void trace(org.slf4j.Marker marker, String msg, Throwable t)
           
 void trace(String msg)
           
 void trace(String format, Object... arguments)
           
 void trace(String format, Object arg)
           
 void trace(String format, Object arg1, Object arg2)
           
 void trace(String msg, Throwable t)
           
 void warn(org.slf4j.Marker marker, String msg)
           
 void warn(org.slf4j.Marker marker, String format, Object... arguments)
           
 void warn(org.slf4j.Marker marker, String format, Object arg)
           
 void warn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
           
 void warn(org.slf4j.Marker marker, String msg, Throwable t)
           
 void warn(String msg)
           
 void warn(String format, Object... arguments)
           
 void warn(String format, Object arg)
           
 void warn(String format, Object arg1, Object arg2)
           
 void warn(String msg, Throwable t)
           
 
Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue
add, contains, isEmpty, iterator, offer, peek, poll, remove, size, toArray, toArray
 
Methods inherited from class java.util.AbstractQueue
addAll, clear, element, remove
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Queue
element, remove
 
Methods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, removeAll, retainAll
 

Constructor Detail

LogQueue

public LogQueue()
Method Detail

addLogEvent

public LogEvent addLogEvent(LogLevel level,
                            String format,
                            Object[] arguments)
Parameters:
level - the log level
format - the log message
arguments - the event arguments to insert in the message
Returns:
the created LogEvent instance
Since:
4.1RC1

addLogEvent

public LogEvent addLogEvent(org.slf4j.Marker marker,
                            LogLevel level,
                            String format,
                            Object[] arguments)
Parameters:
marker - the log marker
level - the log level
format - the log message
arguments - the event arguments to insert in the message
Returns:
the created LogEvent instance
Since:
4.3M1

addLogEvent

public LogEvent addLogEvent(LogLevel level,
                            String format,
                            Object[] arguments,
                            Throwable throwable)
Parameters:
level - the log level
format - the log message
arguments - the event arguments to insert in the message
throwable - the throwable associated to the event
Returns:
the created LogEvent instance
Since:
4.1RC1

addLogEvent

public LogEvent addLogEvent(org.slf4j.Marker marker,
                            LogLevel level,
                            String format,
                            Object[] arguments,
                            Throwable throwable)
Parameters:
marker - the log marker
level - the log level
format - the log message
arguments - the event arguments to insert in the message
throwable - the throwable associated to the event
Returns:
the created LogEvent instance
Since:
4.3M1

getLogs

public List<LogEvent> getLogs(LogLevel level)
Filter logs of a specific level.

Parameters:
level - the level of the logs to return
Returns:
the filtered logs
Since:
4.1RC1

getLogsFrom

public List<LogEvent> getLogsFrom(LogLevel level)
Filter logs of a specific level.

Parameters:
level - the level of the logs to return
Returns:
the filtered logs
Since:
4.2M1

getName

public String getName()
Specified by:
getName in interface org.slf4j.Logger

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface org.slf4j.Logger

trace

public void trace(String msg)
Specified by:
trace in interface org.slf4j.Logger

trace

public void trace(String format,
                  Object arg)
Specified by:
trace in interface org.slf4j.Logger

trace

public void trace(String format,
                  Object arg1,
                  Object arg2)
Specified by:
trace in interface org.slf4j.Logger

trace

public void trace(String format,
                  Object... arguments)
Specified by:
trace in interface org.slf4j.Logger

trace

public void trace(String msg,
                  Throwable t)
Specified by:
trace in interface org.slf4j.Logger

isTraceEnabled

public boolean isTraceEnabled(org.slf4j.Marker marker)
Specified by:
isTraceEnabled in interface org.slf4j.Logger

trace

public void trace(org.slf4j.Marker marker,
                  String msg)
Specified by:
trace in interface org.slf4j.Logger

trace

public void trace(org.slf4j.Marker marker,
                  String format,
                  Object arg)
Specified by:
trace in interface org.slf4j.Logger

trace

public void trace(org.slf4j.Marker marker,
                  String format,
                  Object arg1,
                  Object arg2)
Specified by:
trace in interface org.slf4j.Logger

trace

public void trace(org.slf4j.Marker marker,
                  String format,
                  Object... arguments)
Specified by:
trace in interface org.slf4j.Logger

trace

public void trace(org.slf4j.Marker marker,
                  String msg,
                  Throwable t)
Specified by:
trace in interface org.slf4j.Logger

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface org.slf4j.Logger

debug

public void debug(String msg)
Specified by:
debug in interface org.slf4j.Logger

debug

public void debug(String format,
                  Object arg)
Specified by:
debug in interface org.slf4j.Logger

debug

public void debug(String format,
                  Object arg1,
                  Object arg2)
Specified by:
debug in interface org.slf4j.Logger

debug

public void debug(String format,
                  Object... arguments)
Specified by:
debug in interface org.slf4j.Logger

debug

public void debug(String msg,
                  Throwable t)
Specified by:
debug in interface org.slf4j.Logger

isDebugEnabled

public boolean isDebugEnabled(org.slf4j.Marker marker)
Specified by:
isDebugEnabled in interface org.slf4j.Logger

debug

public void debug(org.slf4j.Marker marker,
                  String msg)
Specified by:
debug in interface org.slf4j.Logger

debug

public void debug(org.slf4j.Marker marker,
                  String format,
                  Object arg)
Specified by:
debug in interface org.slf4j.Logger

debug

public void debug(org.slf4j.Marker marker,
                  String format,
                  Object arg1,
                  Object arg2)
Specified by:
debug in interface org.slf4j.Logger

debug

public void debug(org.slf4j.Marker marker,
                  String format,
                  Object... arguments)
Specified by:
debug in interface org.slf4j.Logger

debug

public void debug(org.slf4j.Marker marker,
                  String msg,
                  Throwable t)
Specified by:
debug in interface org.slf4j.Logger

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface org.slf4j.Logger

info

public void info(String msg)
Specified by:
info in interface org.slf4j.Logger

info

public void info(String format,
                 Object arg)
Specified by:
info in interface org.slf4j.Logger

info

public void info(String format,
                 Object arg1,
                 Object arg2)
Specified by:
info in interface org.slf4j.Logger

info

public void info(String format,
                 Object... arguments)
Specified by:
info in interface org.slf4j.Logger

info

public void info(String msg,
                 Throwable t)
Specified by:
info in interface org.slf4j.Logger

isInfoEnabled

public boolean isInfoEnabled(org.slf4j.Marker marker)
Specified by:
isInfoEnabled in interface org.slf4j.Logger

info

public void info(org.slf4j.Marker marker,
                 String msg)
Specified by:
info in interface org.slf4j.Logger

info

public void info(org.slf4j.Marker marker,
                 String format,
                 Object arg)
Specified by:
info in interface org.slf4j.Logger

info

public void info(org.slf4j.Marker marker,
                 String format,
                 Object arg1,
                 Object arg2)
Specified by:
info in interface org.slf4j.Logger

info

public void info(org.slf4j.Marker marker,
                 String format,
                 Object... arguments)
Specified by:
info in interface org.slf4j.Logger

info

public void info(org.slf4j.Marker marker,
                 String msg,
                 Throwable t)
Specified by:
info in interface org.slf4j.Logger

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface org.slf4j.Logger

warn

public void warn(String msg)
Specified by:
warn in interface org.slf4j.Logger

warn

public void warn(String format,
                 Object arg)
Specified by:
warn in interface org.slf4j.Logger

warn

public void warn(String format,
                 Object arg1,
                 Object arg2)
Specified by:
warn in interface org.slf4j.Logger

warn

public void warn(String format,
                 Object... arguments)
Specified by:
warn in interface org.slf4j.Logger

warn

public void warn(String msg,
                 Throwable t)
Specified by:
warn in interface org.slf4j.Logger

isWarnEnabled

public boolean isWarnEnabled(org.slf4j.Marker marker)
Specified by:
isWarnEnabled in interface org.slf4j.Logger

warn

public void warn(org.slf4j.Marker marker,
                 String msg)
Specified by:
warn in interface org.slf4j.Logger

warn

public void warn(org.slf4j.Marker marker,
                 String format,
                 Object arg)
Specified by:
warn in interface org.slf4j.Logger

warn

public void warn(org.slf4j.Marker marker,
                 String format,
                 Object arg1,
                 Object arg2)
Specified by:
warn in interface org.slf4j.Logger

warn

public void warn(org.slf4j.Marker marker,
                 String format,
                 Object... arguments)
Specified by:
warn in interface org.slf4j.Logger

warn

public void warn(org.slf4j.Marker marker,
                 String msg,
                 Throwable t)
Specified by:
warn in interface org.slf4j.Logger

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface org.slf4j.Logger

error

public void error(String msg)
Specified by:
error in interface org.slf4j.Logger

error

public void error(String format,
                  Object arg)
Specified by:
error in interface org.slf4j.Logger

error

public void error(String format,
                  Object arg1,
                  Object arg2)
Specified by:
error in interface org.slf4j.Logger

error

public void error(String format,
                  Object... arguments)
Specified by:
error in interface org.slf4j.Logger

error

public void error(String msg,
                  Throwable t)
Specified by:
error in interface org.slf4j.Logger

isErrorEnabled

public boolean isErrorEnabled(org.slf4j.Marker marker)
Specified by:
isErrorEnabled in interface org.slf4j.Logger

error

public void error(org.slf4j.Marker marker,
                  String msg)
Specified by:
error in interface org.slf4j.Logger

error

public void error(org.slf4j.Marker marker,
                  String format,
                  Object arg)
Specified by:
error in interface org.slf4j.Logger

error

public void error(org.slf4j.Marker marker,
                  String format,
                  Object arg1,
                  Object arg2)
Specified by:
error in interface org.slf4j.Logger

error

public void error(org.slf4j.Marker marker,
                  String format,
                  Object... arguments)
Specified by:
error in interface org.slf4j.Logger

error

public void error(org.slf4j.Marker marker,
                  String msg,
                  Throwable t)
Specified by:
error in interface org.slf4j.Logger


Copyright © 2004-2013 XWiki. All Rights Reserved.