kojinoguchi opened a new issue, #2722:
URL: https://github.com/apache/logging-log4j2/issues/2722

   ## Description
   When using SimpleLayout provided in log4j-1.2-api, it doesn't log anything.  
 Is this by design? 
   In log4j1, it used to log with ā€œ%level - %m%nā€ pattern ?
   
   
   ## Reproduction
   ```
           Logger logger = Logger.getLogger(clazz);
           logger.removeAllAppenders();
           logger.setLevel(Level.DEBUG);
           SimpleLayout layout = new SimpleLayout();
           logFile = File.createTempFile("log", "");
           FileAppender appender = new FileAppender(layout, logFile.toString(),
                           false, false, 0);
           logger.addAppender(appender);
   ```
   From one of the unit-test we have.  This produces empty logs.  Works when 
replacing SimpleLayout with PatternLayout. 


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