public class LogMetricsHandler extends Handler
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.
Modifier and Type | Field and Description |
---|---|
(package private) NavigableMap<Integer,LongAdder> |
logCounters |
Constructor and Description |
---|
LogMetricsHandler(NavigableMap<Integer,LongAdder> logCounters) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
publish(LogRecord record) |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
final NavigableMap<Integer,LongAdder> logCounters
public LogMetricsHandler(NavigableMap<Integer,LongAdder> logCounters)
public void close() throws SecurityException
close
in class Handler
SecurityException
Copyright © 2021 JBoss by Red Hat. All rights reserved.