Class LoggingConfigEntry
java.lang.Object
com.atlassian.bamboo.configuration.logs.LoggingConfigEntry
- All Implemented Interfaces:
Comparable<LoggingConfigEntry>
Represents a Log4j Config entry, corresponding to a Class or Package mapped to a Level.
-
Constructor Summary
ConstructorDescriptionLoggingConfigEntry
(String clazz, String level) LoggingConfigEntry
(String clazz, org.apache.logging.log4j.Level level) -
Method Summary
Modifier and TypeMethodDescriptionint
static LoggingConfigEntry
forRootLogger
(org.apache.logging.log4j.core.config.LoggerConfig rootLoggerConfig) static LoggingConfigEntry
fromLoggerConfig
(org.apache.logging.log4j.core.config.LoggerConfig loggerConfig) getClazz()
getLevel()
OGNL forces me to match getter and setter types.org.apache.logging.log4j.Level
boolean
isRoot()
void
void
-
Constructor Details
-
LoggingConfigEntry
-
LoggingConfigEntry
-
-
Method Details
-
isRoot
public boolean isRoot() -
getClazz
-
getLevel
OGNL forces me to match getter and setter types. Possibly this could be avoided by use of a TypeConverter.- Returns:
- the string
-
getLog4JLevel
public org.apache.logging.log4j.Level getLog4JLevel() -
setClazz
-
setLevel
-
fromLoggerConfig
public static LoggingConfigEntry fromLoggerConfig(org.apache.logging.log4j.core.config.LoggerConfig loggerConfig) -
compareTo
- Specified by:
compareTo
in interfaceComparable<LoggingConfigEntry>
-
forRootLogger
public static LoggingConfigEntry forRootLogger(org.apache.logging.log4j.core.config.LoggerConfig rootLoggerConfig)
-