vy commented on issue #2794:
URL: 
https://github.com/apache/logging-log4j2/issues/2794#issuecomment-2267085431

   @linghengqian, I am not able to reproduce the issue. When I run the 
following code:
   
   ```
   import org.apache.logging.log4j.LogManager;
   import org.apache.logging.log4j.status.StatusLogger;
   
   public class Log4jIssue2794 {
   
       public static void main(String[] args) {
           LogManager.getLogger().info("foo");
           StatusLogger.getLogger().debug("bar");
           StatusLogger.getLogger().info("baz");
       }
   
   }
   ```
   
   using following system properties:
   
   ```
   -Dlog4j.configurationFile=/path/to/hive-log4j2.properties -Dtest.tmp.dir=/tmp
   ```
   
   it produces below output:
   
   ```
   2024-08-03T19:36:04,784  INFO [main] volkan.Log4jIssue2794: foo
   2024-08-03T17:36:04.786802627Z main INFO baz
   ```
   
   That is, `INFO`-level status message is written and `DEBUG`-level status 
message is discarded, as configured via `status = INFO`.
   
   Would you mind putting a breakpoint to 
`StatusConsoleListener#setLevel(Level)`, please? It should be invoked by 
`StatusConfiguration`, the component responsible for reading `status = INFO` 
and propagating that to `StatusConsoleListener`.


-- 
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]

Reply via email to