LayoutPatternBuilder { public LayoutPatternBuilder suppressExceptions() { removeTrailingComma(); sb.append("%ex{0} "); sb.append(","); return this; } LayoutPatternBuilder(); LayoutPatternBuilder addRequestMetrics(); LayoutPatternBuilder addBasicApplicationLogs(); LayoutPatternBuilder addContextProperties(List<String> exclusions); LayoutPatternBuilder addCustomFields(List<String> mdcKeyNames); LayoutPatternBuilder addStacktraces(); LayoutPatternBuilder suppressExceptions(); String build();  }
@Test public void suppressExceptions() throws Exception { String pattern = new LayoutPatternBuilder().suppressExceptions().build(); assertThat(pattern, specificPart(is("%ex{0} "))); }