com.liferay.portal.kernel.test
Class CaptureHandler
java.lang.Object
java.util.logging.Handler
com.liferay.portal.kernel.test.CaptureHandler
- All Implemented Interfaces:
- Closeable, AutoCloseable
public class CaptureHandler
- extends Handler
- implements Closeable
| Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CaptureHandler
public CaptureHandler(Logger logger,
Level level)
close
public void close()
- Specified by:
close in interface Closeable- Specified by:
close in interface AutoCloseable- Specified by:
close in class Handler
flush
public void flush()
- Specified by:
flush in class Handler
getLogRecords
public List<LogRecord> getLogRecords()
isLoggable
public boolean isLoggable(LogRecord logRecord)
- Overrides:
isLoggable in class Handler
publish
public void publish(LogRecord logRecord)
- Specified by:
publish in class Handler
resetLogLevel
public List<LogRecord> resetLogLevel(Level level)