ppkarwasz commented on issue #3206:
URL: 
https://github.com/apache/logging-log4j2/issues/3206#issuecomment-2475896559

   @ayush11-96,
   
   There is problem in your configuration: you both use the shorthand 
`rootLogger = <level>, <ref1>, <ref2>` notation that was introduced in Log4j 
Core 2.17.2 IIRC (see [Properties configuration 
quirks](https://logging.apache.org/log4j/2.x/manual/configuration.html#java-properties-features)
 for more information) and the normal `rootLogger.appenderRef.<n>.ref` 
properties.
   You should either use the long notation:
   
   ```properties
   rootLogger.level = INFO
   rootLogger.appenderRef.0.ref = console
   ```
   
   or the shorthand notation (which only exists in the Java properties format):
   
   ```properties
   rootLogger = INFO, console
   ```
   
   The NPE is due to the fact that the current code does not handle the case, 
when the shorthand notation is used and no appender reference is provided 
(`rootLogger = INFO`). We will fix this in the next release.


-- 
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: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to