Class JettyLoggerConfiguration


  • public class JettyLoggerConfiguration
    extends java.lang.Object
    JettyLogger specific configuration:
    • <name>.LEVEL=(String:LevelName)
    • <name>.STACKS=(boolean)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getBoolean​(java.lang.String key, boolean defValue)  
      boolean getHideStacks​(java.lang.String name)  
      int getInt​(java.lang.String key, int defValue)  
      JettyLevel getLevel​(java.lang.String name)
      Returns the Logging Level for the provided log name.
      java.lang.String getString​(java.lang.String key, java.lang.String defValue)  
      java.util.TimeZone getTimeZone​(java.lang.String key)  
      JettyLoggerConfiguration load​(java.lang.ClassLoader loader)
      Load the Configuration from the ClassLoader
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JettyLoggerConfiguration

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

        public JettyLoggerConfiguration​(java.util.Properties props)
        JettyLogger configuration from provided Properties
        Parameters:
        props - A set of properties to base this configuration off of
    • Method Detail

      • getHideStacks

        public boolean getHideStacks​(java.lang.String name)
      • getLevel

        public JettyLevel getLevel​(java.lang.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 java.util.TimeZone getTimeZone​(java.lang.String key)
      • load

        public JettyLoggerConfiguration load​(java.lang.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 java.lang.String getString​(java.lang.String key,
                                          java.lang.String defValue)
      • getBoolean

        public boolean getBoolean​(java.lang.String key,
                                  boolean defValue)
      • getInt

        public int getInt​(java.lang.String key,
                          int defValue)