@Test public void testEmpty() throws JSONObjectException, IOException { ContextPropsConverter cpc = new ContextPropsConverter(NO_EXCLUSIONS); MDC.clear(); assertThat(mapFrom(format(cpc, makeEvent(TEST_MSG_NO_ARGS, NO_ARGS))), is(mdcMap())); }
@Override public void format(LogEvent event, StringBuilder toAppendTo) { Map<String, String> contextData = event.getContextData().toMap(); addCustomFieldsFromArguments(contextData, event); converter.convert(toAppendTo, contextData); }
ContextPropsConverter extends LogEventPatternConverter { @Override public void format(LogEvent event, StringBuilder toAppendTo) { Map<String, String> contextData = event.getContextData().toMap(); addCustomFieldsFromArguments(contextData, event); converter.convert(toAppendTo, contextData); } }
ContextPropsConverter extends LogEventPatternConverter { @Override public void format(LogEvent event, StringBuilder toAppendTo) { Map<String, String> contextData = event.getContextData().toMap(); addCustomFieldsFromArguments(contextData, event); converter.convert(toAppendTo, contextData); } ContextPropsConverter(String[] options); }
ContextPropsConverter extends LogEventPatternConverter { @Override public void format(LogEvent event, StringBuilder toAppendTo) { Map<String, String> contextData = event.getContextData().toMap(); addCustomFieldsFromArguments(contextData, event); converter.convert(toAppendTo, contextData); } ContextPropsConverter(String[] options); static ContextPropsConverter newInstance(final String[] options); @Override void format(LogEvent event, StringBuilder toAppendTo); }
ContextPropsConverter extends LogEventPatternConverter { @Override public void format(LogEvent event, StringBuilder toAppendTo) { Map<String, String> contextData = event.getContextData().toMap(); addCustomFieldsFromArguments(contextData, event); converter.convert(toAppendTo, contextData); } ContextPropsConverter(String[] options); static ContextPropsConverter newInstance(final String[] options); @Override void format(LogEvent event, StringBuilder toAppendTo); static final String WORD; }