-
I am reading the Quarkus documentation about logging here but there are a few questions I can't find proper answers. Is it possible to use Is it possible to leverage the log4j2 automatic reconfiguration without the need to restart the application? How does it work if you need more loggers in order to specify a different log level for each of them. For example, in our Strimzi Kafka bridge (we are porting to Quarkus) we have something like this: # HTTP OpenAPI specific logging levels (default is INFO)
# Logging healthy and ready endpoints is very verbose because of Kubernetes health checking.
logger.healthy.name = http.openapi.operation.healthy
logger.healthy.level = WARN
logger.ready.name = http.openapi.operation.ready
logger.ready.level = WARN Where |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
/cc @Sgitario (kubernetes), @geoand (kubernetes), @iocanel (kubernetes) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The logging backend is always JBoss LogManager, but we support merging log messages from many different frontends. flowchart LR
A(JBoss Logging) --> X(JBoss LogManager)
B(java.util.logging) --> X
C(System.Logger) --> X
D(slf4j 1 & 2) --> X
E(log4j) --> X
F(log4j2) --> X
G(LogBack) --> X
H(Apache commons-logging) --> X
X --> O1(Console logging)
X --> O2(File logging)
X --> O3(Custom handlers)
As with all extensions in Quarkus, the log manager is configured using However, it is possible to programmatically reconfigure logging at run time using either the |
Beta Was this translation helpful? Give feedback.
Technically it's just a dot-separated string, where each segment corresponds to a hierarchical level of loggers. As for the docs - well, logging is still a fairly divisive topic, so I won't say one way is "right" or "wrong" but I have my preference. :-)
Great!