Package | Description |
---|---|
org.jboss.logmanager |
Modifier and Type | Field and Description |
---|---|
static Logger.AttachmentKey<Configurator> |
Configurator.ATTACHMENT_KEY
The attachment key of the chosen configurator, used to maintain a strong ref to any
configured properties.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Logger.AttachmentKey,java.lang.Object> |
LoggerNode.attachments
The attachments map.
|
Modifier and Type | Method and Description |
---|---|
<V> V |
Logger.attach(Logger.AttachmentKey<V> key,
V value)
Attach an object to this logger under a given key.
|
(package private) <V> V |
LoggerNode.attach(Logger.AttachmentKey<V> key,
V value) |
<V> V |
Logger.attachIfAbsent(Logger.AttachmentKey<V> key,
V value)
Attach an object to this logger under a given key, if such an attachment does not already exist.
|
(package private) <V> V |
LoggerNode.attachIfAbsent(Logger.AttachmentKey<V> key,
V value) |
<V> V |
Logger.detach(Logger.AttachmentKey<V> key)
Remove an attachment.
|
<V> V |
LoggerNode.detach(Logger.AttachmentKey<V> key) |
<V> V |
Logger.getAttachment(Logger.AttachmentKey<V> key)
Get the attachment value for a given key, or
null if there is no such attachment. |
(package private) <V> V |
LoggerNode.getAttachment(Logger.AttachmentKey<V> key) |
<V> V |
LogContext.getAttachment(java.lang.String loggerName,
Logger.AttachmentKey<V> key)
Get a logger attachment for a logger name, if it exists.
|