Class AbstractLogConfiguration

    • Field Detail

      • LOGGING_CONFIG_FILE

        private static final java.lang.String LOGGING_CONFIG_FILE
        See Also:
        Constant Field Values
      • PACKAGES_SLF4J_KEY

        private static final java.lang.String PACKAGES_SLF4J_KEY
        See Also:
        Constant Field Values
      • PACKAGES_JUL_KEY

        private static final java.lang.String PACKAGES_JUL_KEY
        See Also:
        Constant Field Values
      • baseDir

        private java.io.File baseDir
      • confDir

        private java.io.File confDir
      • loggingDir

        private java.io.File loggingDir
      • debugLoggingEnabled

        private boolean debugLoggingEnabled
      • packages

        private final java.util.Set<java.lang.String> packages
    • Constructor Detail

      • AbstractLogConfiguration

        protected AbstractLogConfiguration()
                                    throws java.io.IOException
        Constructor
        Throws:
        java.io.IOException
    • Method Detail

      • setBaseDir

        public void setBaseDir​(java.io.File baseDir)
                        throws java.io.IOException
        Description copied from interface: LogConfiguration
        Set the base location on the file system for logging configuration and data
        Specified by:
        setBaseDir in interface LogConfiguration
        Parameters:
        baseDir - the base location on the file system for logging configuration and data
        Throws:
        java.io.IOException
      • getBaseDir

        public java.io.File getBaseDir()
        Description copied from interface: LogConfiguration
        The base location on the file system for logging configuration and data
        Specified by:
        getBaseDir in interface LogConfiguration
        Returns:
        the base location on the file system for logging configuration and data
      • getConfDir

        public java.io.File getConfDir()
        Description copied from interface: LogConfiguration
        The location on the file system where logging configuration is stored.
        Specified by:
        getConfDir in interface LogConfiguration
        Returns:
        the location on the file system where logging configuration is stored
      • getLoggingDir

        public java.io.File getLoggingDir()
        Description copied from interface: LogConfiguration
        The location on the file system where logging data is stored.
        Specified by:
        getLoggingDir in interface LogConfiguration
        Returns:
        the location on the file system where logging data is stored
      • initBase

        private void initBase()
                       throws java.io.IOException
        Initialize logging, setting log levels and handlers.
        Throws:
        java.io.IOException
      • isDebugLoggingEnabled

        public boolean isDebugLoggingEnabled()
        Description copied from interface: LogConfiguration
        Is debug logging enabled?
        Specified by:
        isDebugLoggingEnabled in interface LogConfiguration
        Returns:
        true if debug logging is enabled, false otherwise
      • setDebugLoggingEnabled

        public void setDebugLoggingEnabled​(boolean debugLoggingEnabled)
        Description copied from interface: LogConfiguration
        Enable or disable debug logging.
        Specified by:
        setDebugLoggingEnabled in interface LogConfiguration
        Parameters:
        debugLoggingEnabled - set to true if debug logging should be enabled, set to false otherwise
      • getPackages

        protected java.util.Set<java.lang.String> getPackages()
        Get packages as a set
        Returns:
        packages as set of string