Class LogConfigHelper


  • public class LogConfigHelper
    extends Object
    Helper-Class for the configuration of loggers and appenders
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • LogConfigHelper

        public LogConfigHelper()
    • Method Detail

      • isLoggerNameUnique

        public static boolean isLoggerNameUnique​(String loggerName)
        Checks if there is already an logger with the given name stored in the log-properties-file
        Parameters:
        loggerName - String the name to check
        Returns:
        true if an logger with this name already exists, false otherwise
      • isAppenderNameUnique

        public static boolean isAppenderNameUnique​(String appenderName)
        Checks if there is already an appender with the given name stored in the log-properties-file
        Parameters:
        appenderName - String the name to check
        Returns:
        true if an appender with this name already exists, false otherwise
      • isLogAppenderInUse

        @Deprecated
        public static boolean isLogAppenderInUse​(XLogAppender appender)
        Deprecated.
        Method to check if an appender is in use
        Parameters:
        appender - XLogAppender
        Returns:
        true the appender is in use, false otherwise
      • determineLogger

        @Deprecated
        public static List<XLogger> determineLogger​(List<XLogAppender> appenderList)
        Deprecated.
        Method to determine all loggers from the log-configuration-file. Logger without an appender are ignored.
        Parameters:
        appenderList - List of allender
        Returns:
        List of XLogger
      • activateLogger

        @Deprecated
        public static boolean activateLogger​(XLogger logger)
        Deprecated.
        will be removed without replacement
        Parameters:
        logger - XLogger
        Returns:
        false
      • deactivateLogger

        @Deprecated
        public static boolean deactivateLogger​(XLogger logger)
        Deprecated.
        Deactivates the given logger-instance
        Parameters:
        logger - the XLogger to deactivate
        Returns:
        true if successful, false otherwise