category issue. slf4j doesn't override general quarkus level logs #28232
Unanswered
MichalWadas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm trying to resolve issue related to category logging level.
In my project, we are using SLF4J logging library.
What I want to achieve is :
quarkus logging level = INFO (as a default) this is working correctly
but I need to provide ONLY log.debug to the console from java code which is using SLF4J.
so I need to override only one category for SLF4J
What I did:
org.jboss.slf4j
slf4j-jboss-logmanager
1.1.0.Final
pom
private static final Logger logger = Logger.getLogger("");
somewhere in method: logger.log(Level.DEBUG, "Testing logging");
QUARKUS_LOG_CATEGORY__ORG_JBOSS_SLF4J__LEVEL: "DEBUG"
I tried
QUARKUS_LOG_CATEGORY__ORG_JBOSS_LOGMANAGER__LEVEL: "DEBUG"
or
QUARKUS_LOG_CATEGORY__ORG_JBOSS__LEVEL: "DEBUG" (this one gives me some output which means syntax of env variable is correct but maybe the name of category is invalid)
My question is, where the category name is coming from? this is the groupId from dependency or maybe I'm missing something else here?
great regards,
Michal
Beta Was this translation helpful? Give feedback.
All reactions