You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write a custom Log handler for a Quarkus application 2.8.1 version.
I'm created a class that extends ExtHandler as was discussed in this link, a basic one just to test if it works, but I'm not able to find the way to make Quarkus to register it and make it work when I write a Log.
This is my configuration in application.properties:
Doing debug in startup I can see that it Quarkus raises this error message:
Handler with name 'com.myapp.util.DBExtHandler' is linked to a category but not configured.
It's raising in addNamedHandlersToCategory method of LoggingSetupRecorder class, categoryConfig has the name of handler (so, it's reading fine from configuration).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm trying to write a custom Log handler for a Quarkus application 2.8.1 version.
I'm created a class that extends ExtHandler as was discussed in this link, a basic one just to test if it works, but I'm not able to find the way to make Quarkus to register it and make it work when I write a Log.
This is my configuration in application.properties:
quarkus.log.category."com.myapp".handlers=com.myapp.util.DBExtHandler quarkus.log.category."com.myapp".level=INFO quarkus.log.category."com.myapp".use-parent-handlers=true
Doing debug in startup I can see that it Quarkus raises this error message:
Handler with name 'com.myapp.util.DBExtHandler' is linked to a category but not configured.
It's raising in addNamedHandlersToCategory method of LoggingSetupRecorder class, categoryConfig has the name of handler (so, it's reading fine from configuration).
At official documentation I haven't found more information about how to configure this handler: https://quarkus.io/guides/logging#logging-categories
Thanks on advance.
Beta Was this translation helpful? Give feedback.
All reactions