@Test public void shouldAddPrefixToClassName() { when(innerFactory.apply("prefix.java.util.Map")).thenReturn(innerLogger); loggerFactory.getLogger(Map.class); verify(innerFactory, times(1)).apply("prefix.java.util.Map"); }
public StructuredLogger getLogger(final Class<?> clazz) { return getLogger(clazz.getName()); }
StructuredLoggerFactory { public StructuredLogger getLogger(final Class<?> clazz) { return getLogger(clazz.getName()); } }
StructuredLoggerFactory { public StructuredLogger getLogger(final Class<?> clazz) { return getLogger(clazz.getName()); } StructuredLoggerFactory(final String prefix);   StructuredLoggerFactory(final String prefix, final Function<String, Logger> inner); }
StructuredLoggerFactory { public StructuredLogger getLogger(final Class<?> clazz) { return getLogger(clazz.getName()); } StructuredLoggerFactory(final String prefix);   StructuredLoggerFactory(final String prefix, final Function<String, Logger> inner); StructuredLogger getLogger(final Class<?> clazz); StructuredLogger getLogger(final String name); Collection<String> getLoggers(); }
StructuredLoggerFactory { public StructuredLogger getLogger(final Class<?> clazz) { return getLogger(clazz.getName()); } StructuredLoggerFactory(final String prefix);   StructuredLoggerFactory(final String prefix, final Function<String, Logger> inner); StructuredLogger getLogger(final Class<?> clazz); StructuredLogger getLogger(final String name); Collection<String> getLoggers();  }