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 Details

    • LoggingConfigEntry

      public LoggingConfigEntry(String clazz, org.apache.logging.log4j.Level level)
    • LoggingConfigEntry

      public LoggingConfigEntry(String clazz, String level)
  • Method Details

    • 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 interface Comparable<LoggingConfigEntry>
    • forRootLogger

      public static LoggingConfigEntry forRootLogger(org.apache.logging.log4j.core.config.LoggerConfig rootLoggerConfig)