public final class LogRecorder extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
static String |
finish(LogRecorder recorder)
Finishes recording for given
logger and returns the records. |
static LogRecorder |
start(Logger logger,
String pattern,
Charset charset,
int limit)
Starts recoding logs for given
logger . |
static LogRecorder |
start(Logger logger,
String pattern,
Charset charset,
int limit)
Starts recording log for given
logger . |
public static LogRecorder start(Logger logger, String pattern, Charset charset, int limit)
logger
.logger
- the logger instance.pattern
- the patterncharset
- the charsetlimit
- the maximum bytes to hold.public static LogRecorder start(Logger logger, String pattern, Charset charset, int limit)
logger
.logger
- the loggerpattern
- the patterncharset
- the charsetlimit
- the maximum byte to holdpublic static String finish(LogRecorder recorder)
logger
and returns the records.recorder
- the logger.Copyright © 2014–2015. All rights reserved.