public class YamlJsonFactoryDecorator extends Object implements JsonFactoryDecorator
JsonFactoryDecorator that will switch the output
to YAML output instead of JSON text.
See also YamlFeatureJsonGeneratorDecorator for configuring YAMLGenerator features.
| Constructor and Description |
|---|
YamlJsonFactoryDecorator() |
| Modifier and Type | Method and Description |
|---|---|
JsonFactory |
decorate(JsonFactory factory)
Decorates the given
JsonFactory. |
public JsonFactory decorate(JsonFactory factory)
JsonFactoryDecoratorJsonFactory.
By default, returns the given factory unchanged.
Note that the default JsonFactory created by logstash-logback-encoder
is a MappingJsonFactory, but can be changed by JsonFactoryDecorators
to any subclass of JsonFactory.
decorate in interface JsonFactoryDecoratorfactory - the factory to decorateJsonFactoryCopyright © 2013–2022. All rights reserved.