Class LoggingConfigEntry
- java.lang.Object
-
- com.atlassian.bamboo.configuration.logs.LoggingConfigEntry
-
- All Implemented Interfaces:
Comparable<LoggingConfigEntry>
public class LoggingConfigEntry extends Object implements Comparable<LoggingConfigEntry>
Represents a Log4j Config entry, corresponding to a Class or Package mapped to a Level.
-
-
Constructor Summary
Constructors Constructor Description LoggingConfigEntry(String clazz, String level)
LoggingConfigEntry(String clazz, org.apache.logging.log4j.Level level)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(LoggingConfigEntry o)
static LoggingConfigEntry
forRootLogger(org.apache.logging.log4j.core.config.LoggerConfig rootLoggerConfig)
static LoggingConfigEntry
fromLoggerConfig(org.apache.logging.log4j.core.config.LoggerConfig loggerConfig)
String
getClazz()
String
getLevel()
OGNL forces me to match getter and setter types.org.apache.logging.log4j.Level
getLog4JLevel()
boolean
isRoot()
void
setClazz(String clazz)
void
setLevel(String level)
-
-
-
Method Detail
-
isRoot
public boolean isRoot()
-
getClazz
public String getClazz()
-
getLevel
public String 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
public void setClazz(String clazz)
-
setLevel
public void setLevel(String level)
-
fromLoggerConfig
public static LoggingConfigEntry fromLoggerConfig(org.apache.logging.log4j.core.config.LoggerConfig loggerConfig)
-
compareTo
public int compareTo(LoggingConfigEntry o)
- Specified by:
compareTo
in interfaceComparable<LoggingConfigEntry>
-
forRootLogger
public static LoggingConfigEntry forRootLogger(org.apache.logging.log4j.core.config.LoggerConfig rootLoggerConfig)
-
-