|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sodius.mdw.core.util.log.AbstractLogger
com.sodius.mdw.core.util.log.LogRecorder
public class LogRecorder
Creates records of logged information.
Clients may instantiate or subclass this class.
| Nested Class Summary | |
|---|---|
static class |
LogRecorder.Record
A Record keeps track of a logged information. |
| Constructor Summary | |
|---|---|
LogRecorder()
|
|
| Method Summary | |
|---|---|
void |
clear()
Removes all records from this logger. |
List<LogRecorder.Record> |
getRecords()
Return the list of recorded logged information. |
protected void |
log(Level level,
Object message,
Throwable error)
Creates a record with the specified log information. |
protected void |
recorded(LogRecorder.Record record)
Called when a record is created. |
| Methods inherited from class com.sodius.mdw.core.util.log.AbstractLogger |
|---|
createMessage, debug, debug, debug, error, error, error, getLevel, info, info, info, isLoggable, setLevel, warning, warning, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogRecorder()
| Method Detail |
|---|
public List<LogRecorder.Record> getRecords()
Record elements.public void clear()
protected void log(Level level,
Object message,
Throwable error)
log in class AbstractLoggerlevel - the log level (known to be loggable).message - the information to log (usually a String), maybe null.error - an exception to log, maybe null.protected void recorded(LogRecorder.Record record)
record - the created record
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||