@Addresses(value={"/subsystem=logging/logging-profile=*/custom-handler=*","/subsystem=logging/custom-handler=*"}) public class CustomHandler<T extends CustomHandler<T>> extends Object
| Constructor and Description |
|---|
CustomHandler(String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
attributeClass()
The logging handler class to be used.
|
T |
attributeClass(String value)
The logging handler class to be used.
|
Boolean |
enabled()
If set to true the handler is enabled and functioning as normal, if set
to false the handler is ignored when processing log messages.
|
T |
enabled(Boolean value)
If set to true the handler is enabled and functioning as normal, if set
to false the handler is ignored when processing log messages.
|
String |
encoding()
The character encoding used by this Handler.
|
T |
encoding(String value)
The character encoding used by this Handler.
|
String |
filterSpec()
A filter expression value to define a filter.
|
T |
filterSpec(String value)
A filter expression value to define a filter.
|
String |
formatter()
Defines a pattern for the formatter.
|
T |
formatter(String value)
Defines a pattern for the formatter.
|
String |
getKey() |
String |
level()
The log level specifying which message levels will be logged by this
logger.
|
T |
level(String value)
The log level specifying which message levels will be logged by this
logger.
|
String |
module()
The module that the logging handler depends on.
|
T |
module(String value)
The module that the logging handler depends on.
|
String |
namedFormatter()
The name of the defined formatter to be used on the handler.
|
T |
namedFormatter(String value)
The name of the defined formatter to be used on the handler.
|
Map |
properties()
Defines the properties used for the logging handler.
|
T |
properties(Map value)
Defines the properties used for the logging handler.
|
T |
property(String key,
Object value)
Defines the properties used for the logging handler.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
public CustomHandler(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
@ModelNodeBinding(detypedName="class") public String attributeClass()
@ModelNodeBinding(detypedName="enabled") public Boolean enabled()
public T enabled(Boolean value)
@ModelNodeBinding(detypedName="encoding") public String encoding()
@ModelNodeBinding(detypedName="filter-spec") public String filterSpec()
public T filterSpec(String value)
@ModelNodeBinding(detypedName="formatter") public String formatter()
@ModelNodeBinding(detypedName="level") public String level()
public T level(String value)
@ModelNodeBinding(detypedName="module") public String module()
@ModelNodeBinding(detypedName="named-formatter") public String namedFormatter()
public T namedFormatter(String value)
@ModelNodeBinding(detypedName="properties") public Map properties()
public T properties(Map value)
Copyright © 2015 JBoss by Red Hat. All rights reserved.