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

   Minor Javadoc correction.
   
   In **TypeConverters**, the conversion for type "Level" says it returns 
'null' for invalid levels:
   
   ```
   /**
    * Converts a {@link String} into a Log4j {@link Level}. Returns {@code 
null} for invalid level names.
    */
   @Plugin(name = "Level", category = CATEGORY)
   public static class LevelConverter implements TypeConverter<Level> {
       @Override
       public Level convert(final String s) {
           return Level.valueOf(s);
       }
   } 
   ```
   
   But `Level.valueOf(s)` throws an IllegalArgumentException for unknown levels.
    


-- 
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.apache.org

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

Reply via email to