public static List<String> getAllConfiguredLoggers() {
    LoggerContext context = (LoggerContext) LogManager.getContext(false);
    Configuration config = context.getConfiguration();
    return config.getLoggers().values().stream().map(LoggerConfig::toString).collect(Collectors.toList());
  }
@Test
  public void testGetAllConfiguredLoggers() {
    List<String> allLoggers = LoggerUtils.getAllConfiguredLoggers();
    assertEquals(allLoggers.size(), 2);
    assertTrue(allLoggers.contains(ROOT));
    assertTrue(allLoggers.contains(PINOT));
  }