Top Inners Fields Constructors Methods
org.eclipse.jgit.junit.http

public Class RecordingLogger

extends MarkerIgnoringBase
Class Inheritance
Imports
java.text.MessageFormat, java.util.ArrayList, .Collections, .List, org.slf4j.helpers.MarkerIgnoringBase

References Deprecated

MarkerIgnoringBase is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private static final long
private static List<RecordingLogger.Warning>

Constructor Summary

AccessConstructor and Description
public
RecordingLogger()

Constructor for RecordingLogger.

public
RecordingLogger(String
logger name
name
)

Constructor for RecordingLogger.

Method Summary

Modifier and TypeMethod and Description
private void
addWarnings(String format, Object... arguments)

public static void
clear()

Clear the warnings, automatically done by org.eclipse.jgit.junit.http.AppServer#setUp()

public void
debug(String
the message string to be logged
msg
)

Implements org.slf4j.Logger.debug.

Log a message at the DEBUG level.

public void
debug(String
the format string
format
,
Object
the argument
arg
)

Implements org.slf4j.Logger.debug.

Log a message at the DEBUG level according to the specified format and argument.

public void
debug(String
the format string
format
,
Object
the first argument
arg1
,
Object
the second argument
arg2
)

Implements org.slf4j.Logger.debug.

Log a message at the DEBUG level according to the specified format and arguments.

public void
debug(String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Implements org.slf4j.Logger.debug.

Log a message at the DEBUG level according to the specified format and arguments.

public void
debug(String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Implements org.slf4j.Logger.debug.

Log an exception (throwable) at the DEBUG level with an accompanying message.

public void
error(String
the message string to be logged
msg
)

Implements org.slf4j.Logger.error.

Log a message at the ERROR level.

public void
error(String
the format string
format
,
Object
the argument
arg
)

Implements org.slf4j.Logger.error.

Log a message at the ERROR level according to the specified format and argument.

public void
error(String
the format string
format
,
Object
the first argument
arg1
,
Object
the second argument
arg2
)

Implements org.slf4j.Logger.error.

Log a message at the ERROR level according to the specified format and arguments.

public void
error(String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Implements org.slf4j.Logger.error.

Log a message at the ERROR level according to the specified format and arguments.

public void
error(String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Implements org.slf4j.Logger.error.

Log an exception (throwable) at the ERROR level with an accompanying message.

public static List<RecordingLogger.Warning>

Returns:

the warnings (if any) from the last execution
getWarnings
()

Get the warnings.

public void
info(String
the message string to be logged
msg
)

Implements org.slf4j.Logger.info.

Log a message at the INFO level.

public void
info(String
the format string
format
,
Object
the argument
arg
)

Implements org.slf4j.Logger.info.

Log a message at the INFO level according to the specified format and argument.

public void
info(String
the format string
format
,
Object
the first argument
arg1
,
Object
the second argument
arg2
)

Implements org.slf4j.Logger.info.

Log a message at the INFO level according to the specified format and arguments.

public void
info(String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Implements org.slf4j.Logger.info.

Log a message at the INFO level according to the specified format and arguments.

public void
info(String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Implements org.slf4j.Logger.info.

Log an exception (throwable) at the INFO level with an accompanying message.

public boolean
isDebugEnabled()

Implements org.slf4j.Logger.isDebugEnabled.

Is the logger instance enabled for the DEBUG level?

public boolean
isErrorEnabled()

Implements org.slf4j.Logger.isErrorEnabled.

Is the logger instance enabled for the ERROR level?

public boolean
isInfoEnabled()

Implements org.slf4j.Logger.isInfoEnabled.

Is the logger instance enabled for the INFO level?

public boolean
isTraceEnabled()

Implements org.slf4j.Logger.isTraceEnabled.

Is the logger instance enabled for the TRACE level?

public boolean
isWarnEnabled()

Implements org.slf4j.Logger.isWarnEnabled.

Is the logger instance enabled for the WARN level?

public void
trace(String
the message string to be logged
msg
)

Implements org.slf4j.Logger.trace.

Log a message at the TRACE level.

public void
trace(String
the format string
format
,
Object
the argument
arg
)

Implements org.slf4j.Logger.trace.

Log a message at the TRACE level according to the specified format and argument.

public void
trace(String
the format string
format
,
Object
the first argument
arg1
,
Object
the second argument
arg2
)

Implements org.slf4j.Logger.trace.

Log a message at the TRACE level according to the specified format and arguments.

public void
trace(String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Implements org.slf4j.Logger.trace.

Log a message at the TRACE level according to the specified format and arguments.

public void
trace(String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Implements org.slf4j.Logger.trace.

Log an exception (throwable) at the TRACE level with an accompanying message.

public void
warn(String
the message string to be logged
msg
)

Implements org.slf4j.Logger.warn.

Log a message at the WARN level.

public void
warn(String
the format string
format
,
Object
the argument
arg
)

Implements org.slf4j.Logger.warn.

Log a message at the WARN level according to the specified format and argument.

public void
warn(String
the format string
format
,
Object...
a list of 3 or more arguments
arguments
)

Implements org.slf4j.Logger.warn.

Log a message at the WARN level according to the specified format and arguments.

public void
warn(String
the format string
format
,
Object
the first argument
arg1
,
Object
the second argument
arg2
)

Implements org.slf4j.Logger.warn.

Log a message at the WARN level according to the specified format and arguments.

public void
warn(String
the message accompanying the exception
msg
,
Throwable
the exception (throwable) to log
t
)

Implements org.slf4j.Logger.warn.

Log an exception (throwable) at the WARN level with an accompanying message.

Inherited from org.slf4j.helpers.MarkerIgnoringBase:
debugdebugdebugdebugdebugerrorerrorerrorerrorerrorinfoinfoinfoinfoinfoisDebugEnabledisErrorEnabledisInfoEnabledisTraceEnabledisWarnEnabledtoStringtracetracetracetracetracewarnwarnwarnwarnwarn

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.slf4j.helpers.MarkerIgnoringBase.serialVersionUID.

warningsback to summary
private static List<RecordingLogger.Warning> warnings

Constructor Detail

RecordingLoggerback to summary
public RecordingLogger()

Constructor for RecordingLogger.

RecordingLoggerback to summary
public RecordingLogger(String name)

Constructor for RecordingLogger.

Parameters
name:String

logger name

Method Detail

addWarningsback to summary
private void addWarnings(String format, Object... arguments)
clearback to summary
public static void clear()

Clear the warnings, automatically done by org.eclipse.jgit.junit.http.AppServer#setUp()

debugback to summary
public void debug(String msg)

Implements org.slf4j.Logger.debug.

Doc from org.slf4j.Logger.debug.

Log a message at the DEBUG level.

Parameters
msg:String

the message string to be logged

Annotations
@Override
debugback to summary
public void debug(String format, Object arg)

Implements org.slf4j.Logger.debug.

Doc from org.slf4j.Logger.debug.

Log a message at the DEBUG level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the DEBUG level.

Parameters
format:String

the format string

arg:Object

the argument

Annotations
@Override
debugback to summary
public void debug(String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.debug.

Doc from org.slf4j.Logger.debug.

Log a message at the DEBUG level according to the specified format and arguments.

This form avoids superfluous object creation when the logger is disabled for the DEBUG level.

Parameters
format:String

the format string

arg1:Object

the first argument

arg2:Object

the second argument

Annotations
@Override
debugback to summary
public void debug(String format, Object... arguments)

Implements org.slf4j.Logger.debug.

Doc from org.slf4j.Logger.debug.

Log a message at the DEBUG level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the DEBUG level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for DEBUG. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

Annotations
@Override
debugback to summary
public void debug(String msg, Throwable t)

Implements org.slf4j.Logger.debug.

Doc from org.slf4j.Logger.debug.

Log an exception (throwable) at the DEBUG level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

Annotations
@Override
errorback to summary
public void error(String msg)

Implements org.slf4j.Logger.error.

Doc from org.slf4j.Logger.error.

Log a message at the ERROR level.

Parameters
msg:String

the message string to be logged

Annotations
@Override
errorback to summary
public void error(String format, Object arg)

Implements org.slf4j.Logger.error.

Doc from org.slf4j.Logger.error.

Log a message at the ERROR level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the ERROR level.

Parameters
format:String

the format string

arg:Object

the argument

Annotations
@Override
errorback to summary
public void error(String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.error.

Doc from org.slf4j.Logger.error.

Log a message at the ERROR level according to the specified format and arguments.

This form avoids superfluous object creation when the logger is disabled for the ERROR level.

Parameters
format:String

the format string

arg1:Object

the first argument

arg2:Object

the second argument

Annotations
@Override
errorback to summary
public void error(String format, Object... arguments)

Implements org.slf4j.Logger.error.

Doc from org.slf4j.Logger.error.

Log a message at the ERROR level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the ERROR level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for ERROR. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

Annotations
@Override
errorback to summary
public void error(String msg, Throwable t)

Implements org.slf4j.Logger.error.

Doc from org.slf4j.Logger.error.

Log an exception (throwable) at the ERROR level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

Annotations
@Override
getWarningsback to summary
public static List<RecordingLogger.Warning> getWarnings()

Get the warnings.

Returns:List<RecordingLogger.Warning>

the warnings (if any) from the last execution

infoback to summary
public void info(String msg)

Implements org.slf4j.Logger.info.

Doc from org.slf4j.Logger.info.

Log a message at the INFO level.

Parameters
msg:String

the message string to be logged

Annotations
@Override
infoback to summary
public void info(String format, Object arg)

Implements org.slf4j.Logger.info.

Doc from org.slf4j.Logger.info.

Log a message at the INFO level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the INFO level.

Parameters
format:String

the format string

arg:Object

the argument

Annotations
@Override
infoback to summary
public void info(String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.info.

Doc from org.slf4j.Logger.info.

Log a message at the INFO level according to the specified format and arguments.

This form avoids superfluous object creation when the logger is disabled for the INFO level.

Parameters
format:String

the format string

arg1:Object

the first argument

arg2:Object

the second argument

Annotations
@Override
infoback to summary
public void info(String format, Object... arguments)

Implements org.slf4j.Logger.info.

Doc from org.slf4j.Logger.info.

Log a message at the INFO level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the INFO level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for INFO. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

Annotations
@Override
infoback to summary
public void info(String msg, Throwable t)

Implements org.slf4j.Logger.info.

Doc from org.slf4j.Logger.info.

Log an exception (throwable) at the INFO level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

Annotations
@Override
isDebugEnabledback to summary
public boolean isDebugEnabled()

Implements org.slf4j.Logger.isDebugEnabled.

Doc from org.slf4j.Logger.isDebugEnabled.

Is the logger instance enabled for the DEBUG level?

Returns:boolean

True if this Logger is enabled for the DEBUG level, false otherwise.

Annotations
@Override
isErrorEnabledback to summary
public boolean isErrorEnabled()

Implements org.slf4j.Logger.isErrorEnabled.

Doc from org.slf4j.Logger.isErrorEnabled.

Is the logger instance enabled for the ERROR level?

Returns:boolean

True if this Logger is enabled for the ERROR level, false otherwise.

Annotations
@Override
isInfoEnabledback to summary
public boolean isInfoEnabled()

Implements org.slf4j.Logger.isInfoEnabled.

Doc from org.slf4j.Logger.isInfoEnabled.

Is the logger instance enabled for the INFO level?

Returns:boolean

True if this Logger is enabled for the INFO level, false otherwise.

Annotations
@Override
isTraceEnabledback to summary
public boolean isTraceEnabled()

Implements org.slf4j.Logger.isTraceEnabled.

Doc from org.slf4j.Logger.isTraceEnabled.

Is the logger instance enabled for the TRACE level?

Returns:boolean

True if this Logger is enabled for the TRACE level, false otherwise.

Annotations
@Override
isWarnEnabledback to summary
public boolean isWarnEnabled()

Implements org.slf4j.Logger.isWarnEnabled.

Doc from org.slf4j.Logger.isWarnEnabled.

Is the logger instance enabled for the WARN level?

Returns:boolean

True if this Logger is enabled for the WARN level, false otherwise.

Annotations
@Override
traceback to summary
public void trace(String msg)

Implements org.slf4j.Logger.trace.

Doc from org.slf4j.Logger.trace.

Log a message at the TRACE level.

Parameters
msg:String

the message string to be logged

Annotations
@Override
traceback to summary
public void trace(String format, Object arg)

Implements org.slf4j.Logger.trace.

Doc from org.slf4j.Logger.trace.

Log a message at the TRACE level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the TRACE level.

Parameters
format:String

the format string

arg:Object

the argument

Annotations
@Override
traceback to summary
public void trace(String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.trace.

Doc from org.slf4j.Logger.trace.

Log a message at the TRACE level according to the specified format and arguments.

This form avoids superfluous object creation when the logger is disabled for the TRACE level.

Parameters
format:String

the format string

arg1:Object

the first argument

arg2:Object

the second argument

Annotations
@Override
traceback to summary
public void trace(String format, Object... arguments)

Implements org.slf4j.Logger.trace.

Doc from org.slf4j.Logger.trace.

Log a message at the TRACE level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the TRACE level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for TRACE. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

Annotations
@Override
traceback to summary
public void trace(String msg, Throwable t)

Implements org.slf4j.Logger.trace.

Doc from org.slf4j.Logger.trace.

Log an exception (throwable) at the TRACE level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

Annotations
@Override
warnback to summary
public void warn(String msg)

Implements org.slf4j.Logger.warn.

Doc from org.slf4j.Logger.warn.

Log a message at the WARN level.

Parameters
msg:String

the message string to be logged

Annotations
@Override
warnback to summary
public void warn(String format, Object arg)

Implements org.slf4j.Logger.warn.

Doc from org.slf4j.Logger.warn.

Log a message at the WARN level according to the specified format and argument.

This form avoids superfluous object creation when the logger is disabled for the WARN level.

Parameters
format:String

the format string

arg:Object

the argument

Annotations
@Override
warnback to summary
public void warn(String format, Object... arguments)

Implements org.slf4j.Logger.warn.

Doc from org.slf4j.Logger.warn.

Log a message at the WARN level according to the specified format and arguments.

This form avoids superfluous string concatenation when the logger is disabled for the WARN level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for WARN. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

Parameters
format:String

the format string

arguments:Object[]

a list of 3 or more arguments

Annotations
@Override
warnback to summary
public void warn(String format, Object arg1, Object arg2)

Implements org.slf4j.Logger.warn.

Doc from org.slf4j.Logger.warn.

Log a message at the WARN level according to the specified format and arguments.

This form avoids superfluous object creation when the logger is disabled for the WARN level.

Parameters
format:String

the format string

arg1:Object

the first argument

arg2:Object

the second argument

Annotations
@Override
warnback to summary
public void warn(String msg, Throwable t)

Implements org.slf4j.Logger.warn.

Doc from org.slf4j.Logger.warn.

Log an exception (throwable) at the WARN level with an accompanying message.

Parameters
msg:String

the message accompanying the exception

t:Throwable

the exception (throwable) to log

Annotations
@Override
org.eclipse.jgit.junit.http back to summary

public Class RecordingLogger.Warning

extends Exception
Class Inheritance
Annotations
@SuppressWarnings:serial

Constructor Summary

AccessConstructor and Description
public
public
Warning(String msg, Throwable cause)

public

Constructor Detail

Warningback to summary
public Warning(String msg)
Warningback to summary
public Warning(String msg, Throwable cause)
Warningback to summary
public Warning(Throwable thrown)