MemberNamePatternConverter extends LogEventPatternConverter { @Override public void format(final LogEvent event, final StringBuilder toAppendTo) { toAppendTo.append(memberNameSupplier.get()); } private  MemberNamePatternConverter(); static MemberNamePatternConverter newInstance(final String[] options); @Override void format(final LogEvent event, final StringBuilder toAppendTo);  }
@Test public void appendsMemberName() { supplier.set(name); converter.format(null, toAppendTo); assertThat(toAppendTo.toString()).isEqualTo(name); }