- java.lang.Object
-
- org.eclipse.jetty.logging.JettyLoggerConfiguration
-
public class JettyLoggerConfiguration extends java.lang.ObjectJettyLogger specific configuration:<name>.LEVEL=(String:LevelName)<name>.STACKS=(boolean)
-
-
Constructor Summary
Constructors Constructor Description JettyLoggerConfiguration()Default JettyLogger configuration (empty)JettyLoggerConfiguration(java.util.Properties props)JettyLogger configuration from provided Properties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBoolean(java.lang.String key, boolean defValue)booleangetHideStacks(java.lang.String name)intgetInt(java.lang.String key, int defValue)intgetLevel(java.lang.String name)Get the Logging Level for the provided log name.java.util.TimeZonegetTimeZone(java.lang.String key)JettyLoggerConfigurationload(java.lang.ClassLoader loader)Load the Configuration from the ClassLoader
-
-
-
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 int getLevel(java.lang.String name)
Get the Logging Level for the provided log name. Using 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 thejetty-logging.propertiesresources in. Passingnullmeans theClassLoader.getSystemClassLoader()is used.- Returns:
- the configuration
-
getBoolean
public boolean getBoolean(java.lang.String key, boolean defValue)
-
getInt
public int getInt(java.lang.String key, int defValue)
-
-