/* */ public String convert(LoggingEvent event) /* */ { /* 393 */ switch (this.type) { /* */ case 2000: /* 395 */ return Long.toString(event.timeStamp - LoggingEvent.getStartTime()); /* */ case 2001: /* 397 */ return event.getThreadName(); /* */ case 2002: /* 399 */ return event.getLevel().toString(); /* */ case 2003: /* 401 */ return event.getNDC(); /* */ case 2004: /* 403 */ return event.getRenderedMessage(); /* */ } /* 405 */ return null; /* */ }
public String convert(LoggingEvent event) { switch (type) { case RELATIVE_TIME_CONVERTER: return (String.valueOf(event.timeStamp - LoggingEvent.getStartTime())); case THREAD_CONVERTER: return event.getThreadName(); case LEVEL_CONVERTER: return event.getLevel().toString(); case NDC_CONVERTER: return event.getNDC(); case MESSAGE_CONVERTER: { return event.getRenderedMessage(); } default: return null; } }