LogManager { static Logger getParentLogger(final String name) { return getLogger(reduce(name)); } LogManager(); static Logger getRootLogger(); static Logger getLogger(final String name); static Logger getLogger(final String name, final LoggerFactory factory); @SuppressWarnings("rawtypes") static Logger getLogger(final Class clazz); static Logger exists(final String name); @SuppressWarnings("rawtypes") static Enumeration getCurrentLoggers(); static void shutdown(); static void resetConfiguration();  }
@Test public void parentLogger() { Logger logger = LogManager.getParentLogger("test.example.MyClass"); assertThat(logger.getName()).isEqualTo("test.example"); Category parent = logger.getParent(); assertThat(parent).isNotNull(); assertThat(parent.getName()).isEqualTo("test"); }