Package io.quarkus.runtime.logging
Class LogMetricsHandler
java.lang.Object
java.util.logging.Handler
org.jboss.logmanager.ExtHandler
io.quarkus.runtime.logging.LogMetricsHandler
- All Implemented Interfaces:
Flushable
,AutoCloseable
public class LogMetricsHandler
extends org.jboss.logmanager.ExtHandler
Measures the number of log messages based on logger configurations quarkus.log.level and quarkus.log.category.*.level
It should reflect the values of the handler that logs the most, since best practice is to align its level with the root level.
Non-standard levels are counted with the lower standard level.
-
Field Summary
FieldsFields inherited from class org.jboss.logmanager.ExtHandler
handlers, handlersUpdater, lock
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jboss.logmanager.ExtHandler
addHandler, checkAccess, checkAccess, clearHandlers, getCharset, getEncoding, getErrorManager, getFilter, getFormatter, getHandlers, getLevel, isAutoFlush, isCallerCalculationRequired, isCloseChildren, isEnabled, publish, publish, publishToNestedHandlers, removeHandler, reportError, reportError, setAutoFlush, setCharset, setCharsetPrivate, setCloseChildren, setEnabled, setEncoding, setErrorManager, setFilter, setFormatter, setHandlers, setLevel
Methods inherited from class java.util.logging.Handler
isLoggable
-
Field Details
-
logCounters
-
-
Constructor Details
-
Method Details
-
doPublish
protected void doPublish(org.jboss.logmanager.ExtLogRecord record) - Overrides:
doPublish
in classorg.jboss.logmanager.ExtHandler
-
flush
public void flush() -
close
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classorg.jboss.logmanager.ExtHandler
- Throws:
SecurityException
-