@Test public void testWithLettersComingFromLog4j() { pl.setPattern("%d %p [%t] %c{30} - %m%n"); pl.start(); String val = pl.doLayout(getEventObject()); String regex = ClassicTestConstants.ISO_REGEX + " INFO " + MAIN_REGEX + " c.q.l.c.pattern.ConverterTest - Some message\\s*"; assertTrue(val.matches(regex)); }
public String doLayout(ILoggingEvent event) { if (!isStarted()) { return CoreConstants.EMPTY_STRING; } return writeLoopOnConverters(event); }
PatternLayout extends PatternLayoutBase<ILoggingEvent> { public String doLayout(ILoggingEvent event) { if (!isStarted()) { return CoreConstants.EMPTY_STRING; } return writeLoopOnConverters(event); } }
PatternLayout extends PatternLayoutBase<ILoggingEvent> { public String doLayout(ILoggingEvent event) { if (!isStarted()) { return CoreConstants.EMPTY_STRING; } return writeLoopOnConverters(event); } PatternLayout(); }
PatternLayout extends PatternLayoutBase<ILoggingEvent> { public String doLayout(ILoggingEvent event) { if (!isStarted()) { return CoreConstants.EMPTY_STRING; } return writeLoopOnConverters(event); } PatternLayout(); Map<String, String> getDefaultConverterMap(); String doLayout(ILoggingEvent event); }
PatternLayout extends PatternLayoutBase<ILoggingEvent> { public String doLayout(ILoggingEvent event) { if (!isStarted()) { return CoreConstants.EMPTY_STRING; } return writeLoopOnConverters(event); } PatternLayout(); Map<String, String> getDefaultConverterMap(); String doLayout(ILoggingEvent event); static final Map<String, String> defaultConverterMap; static final String HEADER_PREFIX; }