code: @SuppressWarnings("resource")
      public static List<Logger> getAllLoggers() {
  
          LoggerContext context = (LoggerContext)(LogManager.getContext(false));
          Map<String, Logger> loggersByName = new TreeMap<String, Logger>();
          for (Logger logger : context.getLoggers()) {
              String loggerName = logger.getName();
              while (loggerName != null) {
                  if (!loggersByName.containsKey(loggerName)) {
                      Logger currentLogger = (Logger)(LogManager.getLogger(loggerName));
                      loggersByName.put(loggerName, currentLogger);
                  }
                  loggerName = getParentLoggerName(loggerName);
  
              }
          }
          return new ArrayList<Logger>(loggersByName.values());
  
      }
docs: Gets the list of all loggers.<p>
  
  @return the list of all loggers