-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
We use this wonderful plugin for quarkus, since the original quarkus plugin lacks customization. Background: We have a company defined JSON format for logging. With this quarkiverse plugin I can customize logging to achieve this format, but I hope some things get better:
What we did
- we disabled all providers by configuration and defined a JsonProvider for the logging plugin holding all of our needed implementation
- that way we can test our format straight forward
- at start we used a combination of renaming providers by configuration and implementing a JsonProvider, making it hard to understand what was going on and to test
The problem
- we now have as many disable provider configurations in our quarkus app, as you have providers inside your plugin
- when a new provider is added, we need to update that list
- that point is hard for us to find out about
- when a new provider is added, we need to update that list
Possible solutions
- one solution may be to provide an empty format in this if-cascade: adding no providers at all
quarkus-logging-json/runtime/src/main/java/io/quarkiverse/loggingjson/LoggingJsonRecorder.java
Line 50 in c5564cf
if (config.logFormat() == Config.LogFormat.ECS) { - another solution may be to have a global disablement of all predefined providers implementing it in the same space or at provider level itself
Maybe you have got other hints or solutions?
Metadata
Metadata
Assignees
Labels
No labels