Class BaseLoggerManager

    • Field Detail

      • loggerCache

        private java.util.Map loggerCache
      • threshold

        private java.lang.String threshold
      • currentThreshold

        private int currentThreshold
    • Constructor Detail

      • BaseLoggerManager

        public BaseLoggerManager()
    • Method Detail

      • parseThreshold

        protected int parseThreshold​(java.lang.String text)
      • setThreshold

        public void setThreshold​(int currentThreshold)
        Sets the threshold for all new loggers. It will NOT affect the existing loggers.

        This is usually only set once while the logger manager is configured.

        Specified by:
        setThreshold in interface LoggerManager
        Parameters:
        currentThreshold - The new threshold.
      • setThresholds

        public void setThresholds​(int currentThreshold)
        Sets the threshold for all new loggers. It will NOT affect the existing loggers.

        This is usually only set once while the logger manager is configured.

        Specified by:
        setThresholds in interface LoggerManager
        Parameters:
        currentThreshold - The new threshold.
      • getThreshold

        public int getThreshold()
        Returns the current threshold for all new loggers.
        Specified by:
        getThreshold in interface LoggerManager
        Returns:
        Returns the current threshold for all new loggers.
      • setThreshold

        public void setThreshold​(java.lang.String role,
                                 java.lang.String roleHint,
                                 int threshold)
        Specified by:
        setThreshold in interface LoggerManager
      • getThreshold

        public int getThreshold​(java.lang.String role,
                                java.lang.String roleHint)
        Specified by:
        getThreshold in interface LoggerManager
      • createLogger

        protected abstract Logger createLogger​(java.lang.String key)
      • returnComponentLogger

        public void returnComponentLogger​(java.lang.String role,
                                          java.lang.String roleHint)
        Specified by:
        returnComponentLogger in interface LoggerManager
      • getThresholdAsString

        public java.lang.String getThresholdAsString()