TIDConverter extends ClassicConverter { @Override public String convert(ILoggingEvent event) { return String.format("%04d", Thread.currentThread().getId()); }  @Override String convert(ILoggingEvent event);  }
@Test public void testConvert() { final TIDConverter converter = new TIDConverter(); final String tid = String.format("%04d", Thread.currentThread().getId()); assertEquals("Unexpected convertion", tid, converter.convert(new MockILoggingEvent())); assertEquals("Unexpected convertion", tid, converter.convert(new MockILoggingEvent(null, LogMarker.ENTRY.getValue(), "message", new Object[] { null }))); }