Package de.xima.fc.setup.model.log
Class LogConfigHelper
- java.lang.Object
-
- de.xima.fc.setup.model.log.LogConfigHelper
-
public class LogConfigHelper extends Object
Helper-Class for the configuration of loggers and appenders- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_PREFIX
Deprecated.static String
KEY_PREFIX_APPENDER
Deprecated.static String
KEY_ROOTLOGGER
Deprecated.
-
Constructor Summary
Constructors Constructor Description LogConfigHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
activateLogger(XLogger logger)
Deprecated.will be removed without replacementstatic boolean
deactivateLogger(XLogger logger)
Deprecated.static List<XLogAppender>
determineLogAppender()
Deprecated.static List<XLogger>
determineLogger(List<XLogAppender> appenderList)
Deprecated.static boolean
isAppenderNameUnique(String appenderName)
Checks if there is already an appender with the given name stored in the log-properties-filestatic boolean
isLogAppenderInUse(XLogAppender appender)
Deprecated.static boolean
isLoggerNameUnique(String loggerName)
Checks if there is already an logger with the given name stored in the log-properties-file
-
-
-
Field Detail
-
KEY_PREFIX
@Deprecated public static final String KEY_PREFIX
Deprecated.- See Also:
- Constant Field Values
-
KEY_PREFIX_APPENDER
@Deprecated public static final String KEY_PREFIX_APPENDER
Deprecated.- See Also:
- Constant Field Values
-
KEY_ROOTLOGGER
@Deprecated public static final String KEY_ROOTLOGGER
Deprecated.- See Also:
- Constant Field Values
-
-
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.
-
determineLogAppender
@Deprecated public static List<XLogAppender> determineLogAppender()
Deprecated.Method which reads the appenders of the log-configuration-file- Returns:
List
ofXLogAppender
-
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
- theXLogger
to deactivate- Returns:
true
if successful,false
otherwise
-
-