Class BaseLoggerManager

    • Constructor Detail

      • BaseLoggerManager

        public BaseLoggerManager()
    • Method Detail

      • parseThreshold

        protected int parseThreshold​(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.
      • createLogger

        protected abstract Logger createLogger​(String key)
      • getThresholdAsString

        public String getThresholdAsString()