@Test public void getMdcMap() { Map<String, Object> map = Collections.singletonMap("test", "42"); when(logging.getMdcMap()).thenReturn(map); assertThat(context.getMapping()).isEqualTo(map); }
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public Map<String, Object> getMdcMap() { return (Map) ThreadContext.getMapping(); }
TinylogLoggerProvider implements LoggerProvider { @SuppressWarnings({ "unchecked", "rawtypes" }) @Override public Map<String, Object> getMdcMap() { return (Map) ThreadContext.getMapping(); } }
TinylogLoggerProvider implements LoggerProvider { @SuppressWarnings({ "unchecked", "rawtypes" }) @Override public Map<String, Object> getMdcMap() { return (Map) ThreadContext.getMapping(); } TinylogLoggerProvider(); }
TinylogLoggerProvider implements LoggerProvider { @SuppressWarnings({ "unchecked", "rawtypes" }) @Override public Map<String, Object> getMdcMap() { return (Map) ThreadContext.getMapping(); } TinylogLoggerProvider(); @Override Logger getLogger(final String name); @Override void clearMdc(); @Override Object putMdc(final String key, final Object value); @Override Object getMdc(final String key); @Override void removeMdc(final String key); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override Map<String, Object> getMdcMap(); @Override void clearNdc(); @Override String getNdc(); @Override int getNdcDepth(); @Override String popNdc(); @Override String peekNdc(); @Override void pushNdc(final String message); @Override void setNdcMaxDepth(final int maxDepth); }
TinylogLoggerProvider implements LoggerProvider { @SuppressWarnings({ "unchecked", "rawtypes" }) @Override public Map<String, Object> getMdcMap() { return (Map) ThreadContext.getMapping(); } TinylogLoggerProvider(); @Override Logger getLogger(final String name); @Override void clearMdc(); @Override Object putMdc(final String key, final Object value); @Override Object getMdc(final String key); @Override void removeMdc(final String key); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override Map<String, Object> getMdcMap(); @Override void clearNdc(); @Override String getNdc(); @Override int getNdcDepth(); @Override String popNdc(); @Override String peekNdc(); @Override void pushNdc(final String message); @Override void setNdcMaxDepth(final int maxDepth);  }