Class SmileJsonFactoryDecorator
java.lang.Object
net.logstash.logback.decorate.smile.SmileJsonFactoryDecorator
- All Implemented Interfaces:
JsonFactoryDecorator
A
JsonFactoryDecorator that will switch the output
to binary smile output instead of JSON text.
See also SmileFeatureJsonGeneratorDecorator for configuring SmileGenerator features.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SmileJsonFactoryDecorator
public SmileJsonFactoryDecorator()
-
-
Method Details
-
decorate
Description copied from interface:JsonFactoryDecoratorDecorates the givenJsonFactory.By default, returns the given factory unchanged.
Note that the default
JsonFactorycreated by logstash-logback-encoder is aMappingJsonFactory, but can be changed byJsonFactoryDecorators to any subclass ofJsonFactory.- Specified by:
decoratein interfaceJsonFactoryDecorator- Parameters:
factory- the factory to decorate- Returns:
- the decorated
JsonFactory
-