public class TestLogger
extends org.slf4j.helpers.MarkerIgnoringBase
Logger
interface that stores all log-entries in a
list
.Modifier and Type | Class and Description |
---|---|
static class |
TestLogger.LogEvent
An event that tracks the log-entry.
|
static class |
TestLogger.LogLevel
Enumerats the loglevels.
|
Modifier and Type | Field and Description |
---|---|
private List<TestLogger.LogEvent> |
eventList |
protected String |
name |
private static long |
serialVersionUID |
Constructor and Description |
---|
TestLogger()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String s) |
void |
debug(String s,
Object... aobj) |
void |
debug(String s,
Object obj) |
void |
debug(String s,
Object obj,
Object obj1) |
void |
debug(String s,
Throwable throwable) |
void |
error(String s) |
void |
error(String s,
Object... aobj) |
void |
error(String s,
Object obj) |
void |
error(String s,
Object obj,
Object obj1) |
void |
error(String s,
Throwable throwable) |
List<TestLogger.LogEvent> |
getEventList() |
void |
info(String s) |
void |
info(String s,
Object... aobj) |
void |
info(String s,
Object obj) |
void |
info(String s,
Object obj,
Object obj1) |
void |
info(String s,
Throwable throwable) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
protected Object |
readResolve() |
void |
trace(String s) |
void |
trace(String s,
Object... aobj) |
void |
trace(String s,
Object obj) |
void |
trace(String s,
Object obj,
Object obj1) |
void |
trace(String s,
Throwable throwable) |
void |
warn(String s) |
void |
warn(String s,
Object... aobj) |
void |
warn(String s,
Object obj) |
void |
warn(String s,
Object obj,
Object obj1) |
void |
warn(String s,
Throwable throwable) |
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
private static final long serialVersionUID
private final List<TestLogger.LogEvent> eventList
protected String name
public List<TestLogger.LogEvent> getEventList()
public void debug(String s)
public void error(String s)
public void info(String s)
public boolean isDebugEnabled()
public boolean isErrorEnabled()
public boolean isInfoEnabled()
public boolean isTraceEnabled()
public boolean isWarnEnabled()
public void trace(String s)
public void warn(String s)
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
Copyright © 2001–2016 mmm-Team. All rights reserved.