Package org.eclipse.jetty.logging
Class JettyLoggerConfiguration
java.lang.Object
org.eclipse.jetty.logging.JettyLoggerConfiguration
JettyLogger specific configuration:
<name>.LEVEL=(String:LevelName)
<name>.STACKS=(boolean)
-
Constructor Summary
ConstructorDescriptionDefault JettyLogger configuration (empty)JettyLogger configuration from provided Properties -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(String key, boolean defValue) boolean
getHideStacks
(String name) int
Returns the Logging Level for the provided log name.getTimeZone
(String key) load
(ClassLoader loader) Load the Configuration from the ClassLoader
-
Constructor Details
-
JettyLoggerConfiguration
public JettyLoggerConfiguration()Default JettyLogger configuration (empty) -
JettyLoggerConfiguration
JettyLogger configuration from provided Properties- Parameters:
props
- A set of properties to base this configuration off of
-
-
Method Details
-
getHideStacks
-
getLevel
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
-
load
Load the Configuration from the ClassLoader- Parameters:
loader
- the classloader to use when finding thejetty-logging.properties
resources in. Passingnull
means theClassLoader.getSystemClassLoader()
is used.- Returns:
- the configuration
-
getString
-
getBoolean
-
getInt
-