View Javadoc

1   package ch.qos.logback.classic.pattern;
2   
3   import ch.qos.logback.classic.spi.LoggingEvent;
4   
5   /**
6    * Return the event's level.
7    * 
8    * @author Ceki Gülcü
9    */
10  public class LevelConverter extends ClassicConverter {
11  
12    public String convert(LoggingEvent le) {
13      return le.getLevel().toString();
14    }
15  
16  }