Class LoggerConfigurationImpl
java.lang.Object
org.jboss.logmanager.config.AbstractBasicConfiguration<Logger, LoggerConfigurationImpl>
org.jboss.logmanager.config.LoggerConfigurationImpl
- All Implemented Interfaces:
HandlerContainingConfigurable, LoggerConfiguration, NamedConfigurable
final class LoggerConfigurationImpl
extends AbstractBasicConfiguration<Logger, LoggerConfigurationImpl>
implements LoggerConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ValueExpression<String> private ValueExpression<String> private ValueExpression<Boolean> Fields inherited from class AbstractBasicConfiguration
configs, refs -
Constructor Summary
ConstructorsConstructorDescriptionLoggerConfigurationImpl(String name, LogContextConfigurationImpl configuration) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddHandlerName(String name) Add a handler name to this logger.Get the name of the filter to use.Returns a filter that may be an expression.Get the names of the configured handlers.getLevel()Gets the level set on the logger.Returns the level that may be an expression.(package private) ConfigAction<Void> Determine whether parent handlers will be used.Returns a filter that may be an expression.booleanremoveHandlerName(String name) Remove a handler name from this logger.voidSet the name of the filter to use, ornullto leave unconfigured.voidSets the expression value and for the filter.private voidsetFilter(ValueExpression<String> valueExpression) voidsetHandlerNames(String... names) Set the names of the configured handlers.voidsetHandlerNames(Collection<String> names) Set the names of the configured handlers.voidSets the level on the logger.voidSets the expression value for the level.private voidsetLevelValueExpression(ValueExpression<String> expression) voidsetUseParentHandlers(Boolean useParentHandlers) Set whether to use parent handlers.voidsetUseParentHandlers(String expression) Set whether to use parent handlers.voidsetUseParentHandlers(String expression, Boolean value) Set whether to use parent handlers.private voidsetUseParentHandlers(ValueExpression<Boolean> valueExpression) Methods inherited from class AbstractBasicConfiguration
clearRemoved, getConfigs, getConfiguration, getName, getRefs, isRemoved, setRemovedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedConfigurable
getName
-
Field Details
-
filter
-
useParentHandlers
-
level
-
handlerNames
-
-
Constructor Details
-
LoggerConfigurationImpl
LoggerConfigurationImpl(String name, LogContextConfigurationImpl configuration)
-
-
Method Details
-
getFilter
Description copied from interface:LoggerConfigurationGet the name of the filter to use.- Specified by:
getFilterin interfaceLoggerConfiguration- Returns:
- the filter name
-
getFilterValueExpression
Description copied from interface:LoggerConfigurationReturns a filter that may be an expression.- Specified by:
getFilterValueExpressionin interfaceLoggerConfiguration- Returns:
- the filter
-
setFilter
Description copied from interface:LoggerConfigurationSet the name of the filter to use, ornullto leave unconfigured.- Specified by:
setFilterin interfaceLoggerConfiguration- Parameters:
filter- the filter name
-
setFilter
Description copied from interface:LoggerConfigurationSets the expression value and for the filter. This method will not parse the expression for the value and instead use thevalueparameter for the filter on the logger.- Specified by:
setFilterin interfaceLoggerConfiguration- Parameters:
expression- the expressionvalue- the value to set the filter to
-
setFilter
-
getUseParentHandlers
Description copied from interface:LoggerConfigurationDetermine whether parent handlers will be used.- Specified by:
getUseParentHandlersin interfaceLoggerConfiguration- Returns:
- the setting, or
nullto leave unconfigured
-
getUseParentHandlersValueExpression
Description copied from interface:LoggerConfigurationReturns a filter that may be an expression.- Specified by:
getUseParentHandlersValueExpressionin interfaceLoggerConfiguration- Returns:
- the setting, or
nullto leave unconfigured as a value expression
-
setUseParentHandlers
Description copied from interface:LoggerConfigurationSet whether to use parent handlers. A value ofnullindicates that the value should be left unconfigured.- Specified by:
setUseParentHandlersin interfaceLoggerConfiguration- Parameters:
useParentHandlers- whether to use parent handlers
-
setUseParentHandlers
Description copied from interface:LoggerConfigurationSet whether to use parent handlers.- Specified by:
setUseParentHandlersin interfaceLoggerConfiguration- Parameters:
expression- the expression value used to resolve the setting- See Also:
-
setUseParentHandlers
Description copied from interface:LoggerConfigurationSet whether to use parent handlers. This method will not parse the expression for the value and instead use thevalueparameter for the setting on the logger.- Specified by:
setUseParentHandlersin interfaceLoggerConfiguration- Parameters:
expression- the expressionvalue- the value to set the setting to- See Also:
-
setUseParentHandlers
-
getLevel
Description copied from interface:LoggerConfigurationGets the level set on the logger.- Specified by:
getLevelin interfaceLoggerConfiguration- Returns:
- the level
-
getLevelValueExpression
Description copied from interface:LoggerConfigurationReturns the level that may be an expression.- Specified by:
getLevelValueExpressionin interfaceLoggerConfiguration- Returns:
- the level
-
setLevel
Description copied from interface:LoggerConfigurationSets the level on the logger.- Specified by:
setLevelin interfaceLoggerConfiguration- Parameters:
level- the level to set, may be an expression- See Also:
-
setLevel
Description copied from interface:LoggerConfigurationSets the expression value for the level. This method will not parse the expression for the value and instead use thelevelparameter for the level on the logger.- Specified by:
setLevelin interfaceLoggerConfiguration- Parameters:
expression- the expression used to resolve the levellevel- the level to use- See Also:
-
setLevelValueExpression
-
getHandlerNames
Description copied from interface:HandlerContainingConfigurableGet the names of the configured handlers.- Specified by:
getHandlerNamesin interfaceHandlerContainingConfigurable- Returns:
- the names of the configured handlers
-
setHandlerNames
Description copied from interface:HandlerContainingConfigurableSet the names of the configured handlers.- Specified by:
setHandlerNamesin interfaceHandlerContainingConfigurable- Parameters:
names- the names of the configured handlers
-
setHandlerNames
Description copied from interface:HandlerContainingConfigurableSet the names of the configured handlers.- Specified by:
setHandlerNamesin interfaceHandlerContainingConfigurable- Parameters:
names- the names of the configured handlers
-
addHandlerName
Description copied from interface:HandlerContainingConfigurableAdd a handler name to this logger.- Specified by:
addHandlerNamein interfaceHandlerContainingConfigurable- Parameters:
name- the handler name- Returns:
trueif the name was not already set,falseif it was
-
removeHandlerName
Description copied from interface:HandlerContainingConfigurableRemove a handler name from this logger.- Specified by:
removeHandlerNamein interfaceHandlerContainingConfigurable- Parameters:
name- the handler name- Returns:
trueif the name was removed,falseif it was not present
-
getRemoveAction
ConfigAction<Void> getRemoveAction()- Overrides:
getRemoveActionin classAbstractBasicConfiguration<Logger, LoggerConfigurationImpl>
-