Class DebugConfigurationFromProperties

    • Constructor Detail

      • DebugConfigurationFromProperties

        public DebugConfigurationFromProperties​(String debugFilePropertiesPath)
                                         throws InvalidDebugConfigurationException
        initialize the properties It will reset the current properties for every Debug instance
        Parameters:
        debugFilePropertiesPath - path to the debug configuration file
        Throws:
        InvalidDebugConfigurationException - if the file can't be found, can't be read or isn't valid
    • Method Detail

      • getDebugSuffix

        public String getDebugSuffix()
        Description copied from interface: DebugConfiguration
        Get the debug suffix configuration Suffix is an empty string or contains a date format if the rotation interval is enable (rotation interval > 0)
        Specified by:
        getDebugSuffix in interface DebugConfiguration
        Returns:
        suffix, never null; an empty string if no suffix is configured
      • getRotationInterval

        public int getRotationInterval()
        Description copied from interface: DebugConfiguration
        get rotation interval in minute Rotation interval can't be <= 0
        Specified by:
        getRotationInterval in interface DebugConfiguration
        Returns:
        the number of minutes before rotating a file. If <= 0, the rotation is disable.