Logging Log4J 2
See original GitHub issueDescription
Equivalent to https://github.com/quarkiverse/quarkus-logging-logback for Log4J 2.
Allow me to use Log4J 2 to configure Quarkus logging via log4j2.yml
et al as per https://logging.apache.org/log4j/2.x/manual/configuration.html#AutomaticConfiguration
Motivation
There’s nothing to be gained by using <insert-your-favorite-mainstream-Java-logging-framework-here>
over <some-other-mainstream-Java-logging-framework>
. In this day and age they all more than fulfill the requirements most of us have.
However, there’s a lot to loose if you can’t use <insert-your-favorite-mainstream-Java-logging-framework-here>
on a particular Java tech stack.
It’s not about the features or the technology but about the TCO. As an organization you’ll likely want to use the same logging configuration across systems for a number reasons - particularly if you run microservices(-like) environments. We have come to appreciate that modern applications use a logging facade in the code that allows to plug in different logging backends. This ensures that regardless of technology stack in can use the same logging configuration. Customers do not want to configure Logback for applications A-C, Log4j for D-G and some other config for the rest.
I am all for opinionated stacks like Quarkus as long as I can have my own opinion where I disagree 😄
Configuration suggestion
No response
Additional context
This started at https://stackoverflow.com/q/68539676/131929 and continued at https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Logging.20frustration/near/247367612 - thanks @gastaldi and @Ladicek for your input so far.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5
Yes, this is also something we would need 😃
/cc @aloubyansky, @gastaldi, @gsmet, @maxandersen