public class LogConfigHelper extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
KEY_PREFIX  | 
static String | 
KEY_PREFIX_APPENDER  | 
static String | 
KEY_ROOTLOGGER  | 
| Constructor and Description | 
|---|
LogConfigHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
activateLogger(XLogger logger)
Deprecated. 
 
will be removed without replacement 
 | 
static boolean | 
deactivateLogger(XLogger logger)
Deactivates the given logger-instance 
 | 
static List<XLogAppender> | 
determineLogAppender()
Method which reads the appenders of the log-configuration-file 
 | 
static List<XLogger> | 
determineLogger(List<XLogAppender> appenderList)
Method to determine all loggers from the log-configuration-file. 
 | 
static boolean | 
isAppenderNameUnique(String appenderName)
Checks if there is already an appender with the given name stored in the log-properties-file 
 | 
static boolean | 
isLogAppenderInUse(XLogAppender appender)
Method to check if an appender is in use 
 | 
static boolean | 
isLoggerNameUnique(String loggerName)
Checks if there is already an logger with the given name stored in the log-properties-file 
 | 
public static final String KEY_PREFIX
public static final String KEY_PREFIX_APPENDER
public static final String KEY_ROOTLOGGER
public static boolean isLoggerNameUnique(String loggerName)
loggerName - String the name to checktrue if an logger with this name already exists, false otherwisepublic static boolean isAppenderNameUnique(String appenderName)
appenderName - String the name to checktrue if an appender with this name already exists, false otherwisepublic static boolean isLogAppenderInUse(XLogAppender appender)
appender - XLogAppendertrue the appender is in use, false otherwisepublic static List<XLogger> determineLogger(List<XLogAppender> appenderList)
public static List<XLogAppender> determineLogAppender()
List of XLogAppender@Deprecated public static boolean activateLogger(XLogger logger)
logger - XLoggerfalseCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.