Package de.xima.fc.setup.model.log
Class LogConfigHelper
java.lang.Object
de.xima.fc.setup.model.log.LogConfigHelper
Helper-Class for the configuration of loggers and appenders
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
activateLogger
(XLogger logger) Deprecated.will be removed without replacementstatic boolean
deactivateLogger
(XLogger logger) Deprecated.static List<XLogAppender>
Deprecated.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 Details
-
KEY_PREFIX
Deprecated.- See Also:
-
KEY_PREFIX_APPENDER
Deprecated.- See Also:
-
KEY_ROOTLOGGER
Deprecated.- See Also:
-
-
Constructor Details
-
LogConfigHelper
public LogConfigHelper()
-
-
Method Details
-
isLoggerNameUnique
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
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.Method to check if an appender is in use- Parameters:
appender
-XLogAppender
- Returns:
true
the appender is in use,false
otherwise
-
determineLogger
Deprecated.Method to determine all loggers from the log-configuration-file. Logger without an appender are ignored. -
determineLogAppender
Deprecated.Method which reads the appenders of the log-configuration-file- Returns:
List
ofXLogAppender
-
activateLogger
Deprecated.will be removed without replacement- Parameters:
logger
-XLogger
- Returns:
false
-
deactivateLogger
Deprecated.Deactivates the given logger-instance- Parameters:
logger
- theXLogger
to deactivate- Returns:
true
if successful,false
otherwise
-