ppkarwasz commented on issue #2765: URL: https://github.com/apache/logging-log4j2/issues/2765#issuecomment-2247966256
Hi @MohammadNC, > Here's my issue: When I set the log level to "INFO", "WARN", or "ERROR" at the application level, all classes correctly log messages at the respective levels. However, there is one specific class, LciUtility.java, that continues to print DEBUG level logs even when the application log level is set to INFO, WARN, or ERROR. > > Note: The LciUtility class is located within the same application package as the other classes. There is nothing in `LciUtility` that stands out. My guess is that you might have a `<Logger>` configuration that is more specific that "com.comp.cgbu.cne" (e.g. `com.comp.cgbu.cne.Lciutility`). If this is the case, modifications of the log level for "com.comp.cgbu.cne" do not propagate to the logger of the `LciUtility` class. Since local JMX is enabled in Log4j Core up to `2.23.1`, the easiest way to verify it is to start [`jconsole`](https://docs.oracle.com/en/java/javase/17/management/using-jconsole.html) and attach it to the running application. The MBean's for all logging contexts should be available in the `org.apache.logging.log4j2` JMX domain. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
