View Javadoc

1   package ch.qos.logback.classic.pattern;
2   
3   import ch.qos.logback.classic.spi.LoggingEvent;
4   
5   /**
6    * Return the events thread (usually the current thread).
7    * 
8    * @author Ceki Gülcü
9    */
10  public class ThreadConverter extends ClassicConverter {
11  
12    public String convert(LoggingEvent event) {
13      return event.getThreadName();
14    }
15  
16  }