public interface LoggerConfiguration extends NamedConfigurable, HandlerContainingConfigurable
Modifier and Type | Method and Description |
---|---|
String |
getFilter()
Get the name of the filter to use.
|
ValueExpression<String> |
getFilterValueExpression()
Returns a filter that may be an expression.
|
String |
getLevel()
Gets the level set on the logger.
|
ValueExpression<String> |
getLevelValueExpression()
Returns the level that may be an expression.
|
Boolean |
getUseParentFilters()
Determine whether parent filters will be used.
|
ValueExpression<Boolean> |
getUseParentFiltersValueExpression()
Returns the value that may be an expression.
|
Boolean |
getUseParentHandlers()
Determine whether parent handlers will be used.
|
ValueExpression<Boolean> |
getUseParentHandlersValueExpression()
Returns the value that may be an expression.
|
void |
setFilter(String name)
Set the name of the filter to use, or
null to leave unconfigured. |
void |
setFilter(String expression,
String value)
Sets the expression value and for the filter.
|
void |
setLevel(String level)
Sets the level on the logger.
|
void |
setLevel(String expression,
String level)
Sets the expression value for the level.
|
void |
setUseParentFilters(Boolean value)
Set whether to use parent filters.
|
void |
setUseParentFilters(String expression)
Set whether to use parent filters.
|
void |
setUseParentFilters(String expression,
Boolean value)
Set whether to use parent filters.
|
void |
setUseParentHandlers(Boolean value)
Set whether to use parent handlers.
|
void |
setUseParentHandlers(String expression)
Set whether to use parent handlers.
|
void |
setUseParentHandlers(String expression,
Boolean value)
Set whether to use parent handlers.
|
getName
addHandlerName, getHandlerNames, removeHandlerName, setHandlerNames, setHandlerNames
String getFilter()
ValueExpression<String> getFilterValueExpression()
void setFilter(String name)
null
to leave unconfigured.name
- the filter namevoid setFilter(String expression, String value)
value
parameter for the
filter on the logger.expression
- the expressionvalue
- the value to set the filter toBoolean getUseParentFilters()
null
to leave unconfiguredValueExpression<Boolean> getUseParentFiltersValueExpression()
null
to leave unconfigured as a value expressionvoid setUseParentFilters(Boolean value)
null
indicates that the value should be left
unconfigured.value
- whether to use parent filtersvoid setUseParentFilters(String expression)
expression
- the expression value used to resolve the settingsetUseParentFilters(Boolean)
,
ValueExpression
void setUseParentFilters(String expression, Boolean value)
This method will not parse the expression for the value and instead use the value
parameter for the
setting on the logger.
expression
- the expressionvalue
- the value to set the setting tosetUseParentFilters(Boolean)
,
ValueExpression
Boolean getUseParentHandlers()
null
to leave unconfiguredValueExpression<Boolean> getUseParentHandlersValueExpression()
null
to leave unconfigured as a value expressionvoid setUseParentHandlers(Boolean value)
null
indicates that the value should be left
unconfigured.value
- whether to use parent handlersvoid setUseParentHandlers(String expression)
expression
- the expression value used to resolve the settingsetUseParentHandlers(Boolean)
,
ValueExpression
void setUseParentHandlers(String expression, Boolean value)
value
parameter for the
setting on the logger.expression
- the expressionvalue
- the value to set the setting tosetUseParentHandlers(Boolean)
,
ValueExpression
String getLevel()
ValueExpression<String> getLevelValueExpression()
void setLevel(String level)
level
- the level to set, may be an expressionValueExpression
void setLevel(String expression, String level)
level
parameter for the
level on the logger.expression
- the expression used to resolve the levellevel
- the level to usesetLevel(String)
,
ValueExpression
Copyright © 2019 JBoss by Red Hat. All rights reserved.