public class AssertionLoggerHandler extends ExtHandler
startCapture()
and stopCapture()
Be careful with this use as this is intended for testing only (such as testcases)handlers, handlersUpdater| Constructor and Description |
|---|
AssertionLoggerHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear() |
void |
close()
Close all child handlers.
|
protected void |
doPublish(ExtLogRecord record)
Do the actual work of publication; the record will have been filtered already.
|
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()
Flush all child handlers.
|
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, unprotectgetEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportErrorpublic void flush()
flush in interface Flushableflush in class ExtHandlerpublic void close()
throws SecurityException
close in interface Closeableclose in interface AutoCloseableclose in class ExtHandlerSecurityExceptionprotected void doPublish(ExtLogRecord record)
ExtHandlerautoFlush property is set to true; if this behavior is to be
preserved in a subclass then this method should be called after the record is physically written.doPublish in class ExtHandlerrecord - the log record to publishpublic 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 © 2017 JBoss by Red Hat. All rights reserved.