com.liferay.portal.kernel.test
Class CaptureHandler
java.lang.Object
java.util.logging.Handler
com.liferay.portal.kernel.test.CaptureHandler
public class CaptureHandler
- extends Handler
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()
throws SecurityException
- Specified by:
close
in class Handler
- Throws:
SecurityException
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)