public class CaptureHandler
extends Handler
implements Closeable
Constructor and Description |
---|
CaptureHandler(Logger logger,
Level level) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
List<LogRecord> |
getLogRecords() |
boolean |
isLoggable(LogRecord logRecord) |
void |
publish(LogRecord logRecord) |
List<LogRecord> |
resetLogLevel(Level level) |
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class Handler
public void flush()
flush
in class Handler
public List<LogRecord> getLogRecords()
public boolean isLoggable(LogRecord logRecord)
isLoggable
in class Handler
public void publish(LogRecord logRecord)
publish
in class Handler
public List<LogRecord> resetLogLevel(Level level)