@Nullable
  public static Map<String, String> getLoggerInfo(String loggerName) {
    LoggerContext context = (LoggerContext) LogManager.getContext(false);
    Configuration config = context.getConfiguration();
    if (!getAllConfiguredLoggers().contains(loggerName)) {
      return null;
    }
    LoggerConfig loggerConfig = getLoggerConfig(config, loggerName);
    return getLoggerResponse(loggerConfig);
  }
@Test
  public void testGetLoggerInfo() {
    Map<String, String> rootLoggerInfo = LoggerUtils.getLoggerInfo(ROOT);
    assertNotNull(rootLoggerInfo);
    assertEquals(rootLoggerInfo.get("name"), ROOT);
    assertEquals(rootLoggerInfo.get("level"), "ERROR");
    assertNull(rootLoggerInfo.get("filter"));

    Map<String, String> pinotLoggerInfo = LoggerUtils.getLoggerInfo(PINOT);
    assertNotNull(pinotLoggerInfo);
    assertEquals(pinotLoggerInfo.get("name"), PINOT);
    assertEquals(pinotLoggerInfo.get("level"), "WARN");
    assertNull(pinotLoggerInfo.get("filter"));

    assertNull(LoggerUtils.getLoggerInfo("notExistLogger"));
  }