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
UID for serialization.
|
Constructor and Description |
---|
TestLogger()
The constructor.
|
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
getEventList()
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–2014 mmm-Team. All rights reserved.