@Test public void testWithParenthesis() { pl.setPattern("\\(%msg:%msg\\) %msg"); pl.start(); le = makeLoggingEvent(aMessage, null); String val = pl.doLayout(le); assertEquals("(Some message:Some message) Some message", val); }
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; }