public class LogConfigHelper extends Object
XfcLogConfigHelper
ersetzen. Helper-Class for the configuration of loggers and appendersModifier and Type | Field and Description |
---|---|
static String |
KEY_PREFIX
Deprecated.
|
static String |
KEY_PREFIX_APPENDER
Deprecated.
|
static String |
KEY_ROOTLOGGER
Deprecated.
|
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
|
@Deprecated public static final String KEY_PREFIX
@Deprecated public static final String KEY_PREFIX_APPENDER
@Deprecated 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
- XLogAppender
true
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
- XLogger
false
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.