Class CmsLog4jUtil


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

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<org.apache.logging.log4j.core.Logger> getAllLoggers()
      Gets the list of all loggers.
      static java.lang.String getParentLoggerName​(java.lang.String loggerName)
      Gets the parent logger name for a given logger name, or null if there is no parent logger name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getAllLoggers

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

        Returns:
        the list of all loggers
      • getParentLoggerName

        public static java.lang.String getParentLoggerName​(java.lang.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