Class JettyLoggerConfiguration
java.lang.Object
org.eclipse.jetty.logging.JettyLoggerConfiguration
JettyLogger specific configuration:
<name>.LEVEL=(String:LevelName)<name>.STACKS=(boolean)
-
Constructor Summary
ConstructorsConstructorDescriptionDefault JettyLogger configuration (empty)JettyLogger configuration from provided Properties -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String key, boolean defValue) booleangetHideStacks(String name) intReturns 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.propertiesresources in. Passingnullmeans theClassLoader.getSystemClassLoader()is used.- Returns:
- the configuration
-
getString
-
getBoolean
-
getInt
-