Class JettyLoggerConfiguration

java.lang.Object
org.eclipse.jetty.logging.JettyLoggerConfiguration

public class JettyLoggerConfiguration extends Object
JettyLogger specific configuration:
  • <name>.LEVEL=(String:LevelName)
  • <name>.STACKS=(boolean)
  • Constructor Details

    • JettyLoggerConfiguration

      public JettyLoggerConfiguration()
      Default JettyLogger configuration (empty)
    • JettyLoggerConfiguration

      public JettyLoggerConfiguration(Properties props)
      JettyLogger configuration from provided Properties
      Parameters:
      props - A set of properties to base this configuration off of
  • Method Details

    • getHideStacks

      public boolean getHideStacks(String name)
    • getLevel

      public JettyLevel getLevel(String name)

      Returns the Logging Level for the provided log name.

      Uses the FQCN first, then each package segment from longest to shortest.

      Parameters:
      name - the name to get log for
      Returns:
      the logging level int
    • getTimeZone

      public TimeZone getTimeZone(String key)
    • load

      public JettyLoggerConfiguration load(ClassLoader loader)
      Load the Configuration from the ClassLoader
      Parameters:
      loader - the classloader to use when finding the jetty-logging.properties resources in. Passing null means the ClassLoader.getSystemClassLoader() is used.
      Returns:
      the configuration
    • getString

      public String getString(String key, String defValue)
    • getBoolean

      public boolean getBoolean(String key, boolean defValue)
    • getInt

      public int getInt(String key, int defValue)