public class LogCollector extends Object implements LogCallback
LogCollector lc = new LogCollector (); LOGGER.addCallback (lc);When all logging has finished you can get the accumulated messages using:
VectordebugMessages = lc.getDebugs (); Vector infoMessages = lc.getInfos (); Vector warnings = lc.getWarnings (); Vector errors = lc.getErrors ();
Constructor and Description |
---|
LogCollector()
Instantiates a new log collector.
|
Modifier and Type | Method and Description |
---|---|
Vector<String> |
getDebugs()
Gets the debugs.
|
Vector<String> |
getErrors()
Gets the errors.
|
Vector<String> |
getInfos()
Gets the infos.
|
Vector<String> |
getWarnings()
Gets the warnings.
|
void |
logged(int lvl,
String msg)
Post-handle a logged message.
|
public void logged(int lvl, String msg)
LogCallback
logged
in interface LogCallback
lvl
- the levelmsg
- the messageCopyright © 2014. All rights reserved.