public class QuarkusDelayedHandler
extends org.jboss.logmanager.ExtHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
QUARKUS_LOG_MAX_STARTUP_RECORDS
This is a system property that can be used to help debug startup issues if TRACE and DEBUG logs are being
dropped due to the queue limit being exceeded.
|
| Constructor and Description |
|---|
QuarkusDelayedHandler() |
QuarkusDelayedHandler(int queueLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(Handler handler) |
void |
addLoggingCloseTask(Runnable runnable) |
void |
buildTimeComplete() |
Handler[] |
clearHandlers() |
void |
close() |
protected void |
doPublish(org.jboss.logmanager.ExtLogRecord record) |
boolean |
isActivated()
Indicates whether or not this handler has been activated.
|
boolean |
isCallerCalculationRequired() |
void |
removeHandler(Handler handler) |
Handler[] |
setBuildTimeHandlers(Handler[] newHandlers) |
void |
setCallerCalculationRequired(boolean callerCalculationRequired)
Sets whether or not caller information will be required when formatting
records.
|
Handler[] |
setHandlers(Handler[] newHandlers) |
flush, getHandlers, isAutoFlush, isCloseChildren, isEnabled, publish, publish, publishToNestedHandlers, reportError, reportError, setAutoFlush, setCloseChildren, setEnabled, setEncoding, setErrorManager, setFilter, setFormatter, setLevelgetEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggablepublic static final String QUARKUS_LOG_MAX_STARTUP_RECORDS
public QuarkusDelayedHandler()
public QuarkusDelayedHandler(int queueLimit)
protected void doPublish(org.jboss.logmanager.ExtLogRecord record)
doPublish in class org.jboss.logmanager.ExtHandlerpublic final void close()
throws SecurityException
close in interface Closeableclose in interface AutoCloseableclose in class org.jboss.logmanager.ExtHandlerSecurityExceptionpublic void addHandler(Handler handler) throws SecurityException
Note that once this is invoked the handler will be activated and the messages will no longer be queued. If more
than one child handler is required the setHandlers(Handler[]) should be used.
addHandler in class org.jboss.logmanager.ExtHandlerSecurityExceptionsetHandlers(Handler[])public Handler[] setHandlers(Handler[] newHandlers) throws SecurityException
Note that once this is invoked the handler will be activated and the messages will no longer be queued.
setHandlers in class org.jboss.logmanager.ExtHandlerSecurityExceptionpublic void addLoggingCloseTask(Runnable runnable)
public Handler[] setBuildTimeHandlers(Handler[] newHandlers) throws SecurityException
SecurityExceptionpublic void buildTimeComplete()
public void removeHandler(Handler handler) throws SecurityException
Note that if the last child handler is removed the handler will no longer be activated and the messages will again be queued.
removeHandler in class org.jboss.logmanager.ExtHandlerSecurityExceptionclearHandlers()public Handler[] clearHandlers() throws SecurityException
Note that once this is invoked the handler will no longer be activated and messages will again be queued.
clearHandlers in class org.jboss.logmanager.ExtHandlerSecurityExceptionremoveHandler(Handler)public boolean isCallerCalculationRequired()
This can be overridden to always require the caller calculation by setting the
setCallerCalculationRequired(boolean) value to true.
isCallerCalculationRequired in class org.jboss.logmanager.ExtHandlersetCallerCalculationRequired(boolean)public void setCallerCalculationRequired(boolean callerCalculationRequired)
If set to true the caller information will be calculated for each
record that is placed in the queue. A value of false means the
super#isCallerCalculationRequired() will be used.
Note that the caller information is only attempted to be calculated when the handler has not been activated. Once activated it's up to the children handlers to determine how the record is processed.
callerCalculationRequired - true if the caller information
should always be calculated before the record is being placed in the queuepublic final boolean isActivated()
true if the handler has been activated, otherwise falseCopyright © 2021 JBoss by Red Hat. All rights reserved.