Class PropertyContextConfiguration
- java.lang.Object
-
- org.jboss.logmanager.configuration.ContextConfiguration
-
- org.jboss.logmanager.configuration.PropertyContextConfiguration
-
- All Implemented Interfaces:
AutoCloseable
public class PropertyContextConfiguration extends ContextConfiguration
A utility to parse alogging.properties
file and configure aLogContext
.- Author:
- James R. Perkins
-
-
Field Summary
-
Fields inherited from class org.jboss.logmanager.configuration.ContextConfiguration
CONTEXT_CONFIGURATION_KEY
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyContextConfiguration
configure(LogContext logContext, Properties properties)
Configures theLogContext
based on the properties.-
Methods inherited from class org.jboss.logmanager.configuration.ContextConfiguration
addErrorManager, addFilter, addFormatter, addHandler, addObject, close, getContext, getErrorManager, getErrorManagers, getFilter, getFilters, getFormatter, getFormatters, getHandler, getHandlers, getLogger, getLoggers, getObject, getObjects, hasErrorManager, hasFilter, hasFormatter, hasHandler, hasLogger, hasObject, removeErrorManager, removeFilter, removeFormatter, removeHandler, removeObject
-
-
-
-
Method Detail
-
configure
public static PropertyContextConfiguration configure(LogContext logContext, Properties properties)
Configures theLogContext
based on the properties.- Parameters:
logContext
- the log context to configureproperties
- the properties used to configure the log context- Returns:
- the context configuration for the properties
-
-