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, isCallerCalculationRequired, isCloseChildren, isEnabled, protect, publish, publish, removeHandler, setAutoFlush, setCloseChildren, setEnabled, setEncoding, setErrorManager, setFilter, setFormatter, setHandlers, setLevel, unprotect
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError
public void flush()
flush
in interface Flushable
flush
in class ExtHandler
public void close() throws SecurityException
close
in interface Closeable
close
in interface AutoCloseable
close
in class ExtHandler
SecurityException
protected void doPublish(ExtLogRecord record)
ExtHandler
autoFlush
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 ExtHandler
record
- 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 © 2019 JBoss by Red Hat. All rights reserved.