Class CmsLog4jUtil

java.lang.Object
org.opencms.util.CmsLog4jUtil

public final class CmsLog4jUtil extends Object
Utilities for dealing with log4j loggers.

  • Method Details

    • getAllLoggers

      public static List<org.apache.logging.log4j.core.Logger> getAllLoggers()
      Gets the list of all loggers.

      Returns:
      the list of all loggers
    • getParentLoggerName

      public static String getParentLoggerName(String loggerName)
      Gets the parent logger name for a given logger name, or null if there is no parent logger name.

      Parameters:
      loggerName - the name of a logger
      Returns:
      the parent name of the logger, or null if the logger name has no parent