public interface EventResources
| Modifier and Type | Method and Description |
|---|---|
EventResources |
resource(String key,
Object value)
Add a resource for the event.
|
EventResources |
resource(String key,
Supplier<String> value)
Add a resource for the event using a supplier.
|
EventResources resource(String key, Object value)
key - the key to identify the resourcevalue - the value which will be logged for the resource.
This is converted to a string before logging.EventResources resource(String key, Supplier<String> value)
key - the key to identify the resourcevalue - a supplier which returns the value to be logged for
this resourceresource(java.lang.String,java.lang.Object)Copyright © 2017–2021 Apache Software Foundation. All rights reserved.