@Addresses(value={"/subsystem=logging/logging-profile=*/console-handler=*","/subsystem=logging/console-handler=*"}) public class ConsoleHandler<T extends ConsoleHandler<T>> extends HashMap implements Keyed
| Modifier and Type | Class and Description |
|---|---|
static class |
ConsoleHandler.Target |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ConsoleHandler(String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Boolean |
autoflush()
Automatically flush after each write.
|
T |
autoflush(Boolean value)
Automatically flush after each write.
|
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() |
Level |
level()
The log level specifying which message levels will be logged by this
logger.
|
T |
level(Level value)
The log level specifying which message levels will be logged by this
logger.
|
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.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
ConsoleHandler.Target |
target()
Defines the target of the console handler.
|
T |
target(ConsoleHandler.Target value)
Defines the target of the console handler.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic ConsoleHandler(String key)
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
@ModelNodeBinding(detypedName="autoflush") public Boolean autoflush()
@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 Level level()
public T level(Level value)
@ModelNodeBinding(detypedName="named-formatter") public String namedFormatter()
public T namedFormatter(String value)
@ModelNodeBinding(detypedName="target") public ConsoleHandler.Target target()
public T target(ConsoleHandler.Target value)
Copyright © 2017 JBoss by Red Hat. All rights reserved.