public class AssertionLoggerHandler
extends org.jboss.logmanager.ExtHandler
startCapture()
and stopCapture()
Be careful with this use as this is intended for testing only (such as testcases)Constructor and Description |
---|
AssertionLoggerHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
void |
close() |
protected void |
doPublish(org.jboss.logmanager.ExtLogRecord record) |
static boolean |
findText(long mstimeout,
String... text) |
static boolean |
findText(String... text)
Find a line that contains the parameters passed as an argument
|
void |
flush() |
static boolean |
hasLevel(Level level)
is there any record matching Level?
|
static void |
startCapture() |
static void |
stopCapture() |
addHandler, checkAccess, checkAccess, clearHandlers, disableAccess, enableAccess, getHandlers, isAutoFlush, isEnabled, protect, publish, publish, removeHandler, setAutoFlush, setEnabled, setEncoding, setErrorManager, setFilter, setFormatter, setHandlers, setLevel, unprotect
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError
public void flush()
public void close() throws SecurityException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.jboss.logmanager.ExtHandler
SecurityException
protected void doPublish(org.jboss.logmanager.ExtLogRecord record)
doPublish
in class org.jboss.logmanager.ExtHandler
public static boolean hasLevel(Level level)
level
- public static boolean findText(long mstimeout, String... text)
public static boolean findText(String... text)
text
- public static final void clear()
public static final void startCapture()
public static final void stopCapture()
Copyright © 2016 The Apache Software Foundation. All rights reserved.