| Package | Description |
|---|---|
| net.logstash.logback.argument | |
| net.logstash.logback.marker |
| Modifier and Type | Method and Description |
|---|---|
static StructuredArgument |
StructuredArguments.a(String fieldName,
Object... objects)
Abbreviated convenience method for calling
StructuredArguments.array(String, Object...). |
static StructuredArgument |
StructuredArguments.array(String fieldName,
Object... objects)
Adds a field to the JSON event whose key is fieldName and whose value is a JSON array of objects AND
a string version of the array to the formatted message.
|
static StructuredArgument |
StructuredArguments.e(Map<?,?> map)
Abbreviated convenience method for calling
StructuredArguments.entries(Map). |
static StructuredArgument |
StructuredArguments.entries(Map<?,?> map)
Adds a "key":"value" entry for each Map entry to the JSON event AND
map.toString() to the formatted message.
|
static StructuredArgument |
StructuredArguments.f(Object object)
Abbreviated convenience method for calling
StructuredArguments.fields(Object). |
static StructuredArgument |
StructuredArguments.fields(Object object)
Adds a "key":"value" entry for each field in the given object to the JSON event AND
object.toString() to the formatted message.
|
static StructuredArgument |
StructuredArguments.keyValue(String key,
Object value)
Convenience method for calling
StructuredArguments.keyValue(String, Object, String)
using the StructuredArguments.DEFAULT_KEY_VALUE_MESSAGE_FORMAT_PATTERN. |
static StructuredArgument |
StructuredArguments.keyValue(String key,
Object value,
String messageFormatPattern)
Adds "key":"value" to the JSON event AND
name/value to the formatted message using the given messageFormatPattern.
|
static StructuredArgument |
StructuredArguments.kv(String key,
Object value)
Abbreviated convenience method for calling
StructuredArguments.keyValue(String, Object). |
static StructuredArgument |
StructuredArguments.kv(String key,
Object value,
String messageFormatPattern)
Abbreviated convenience method for calling
StructuredArguments.keyValue(String, Object, String). |
static StructuredArgument |
StructuredArguments.r(String fieldName,
String rawJsonValue)
Abbreviated convenience method for calling
StructuredArguments.raw(String, String). |
static StructuredArgument |
StructuredArguments.raw(String fieldName,
String rawJsonValue)
Adds the rawJsonValue to the JSON event AND
the rawJsonValue to the formatted message.
|
static StructuredArgument |
StructuredArguments.v(String key,
Object value)
Abbreviated convenience method for calling
StructuredArguments.value(String, Object). |
static StructuredArgument |
StructuredArguments.value(String key,
Object value)
Adds "key":"value" to the JSON event AND
value to the formatted message (without the key).
|
| Modifier and Type | Class and Description |
|---|---|
class |
MapEntriesAppendingMarker
|
class |
ObjectAppendingMarker
A
Marker OR StructuredArgument that
writes an object under a given fieldName in the log event output. |
class |
ObjectFieldsAppendingMarker
A
Marker OR StructuredArgument that
that "unwraps" the given object into the logstash event. |
class |
RawJsonAppendingMarker
A
Marker OR StructuredArgument that
writes a raw json value to the logstash json event
under a given field name. |
class |
SingleFieldAppendingMarker
A
Marker OR StructuredArgument that appends
a single field into the JSON event. |
Copyright © 2018. All rights reserved.