Event - type of event (ILoggingEvent or IAccessEvent).public abstract class CompositeJsonFormatter<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>
extends ch.qos.logback.core.spi.ContextAwareBase
implements ch.qos.logback.core.spi.LifeCycle
JsonProviders.
The CompositeJsonFormatter starts the JSON object ('{'),
then delegates writing the contents of the object to the JsonProviders,
and then ends the JSON object ('}').
| Constructor and Description |
|---|
CompositeJsonFormatter(ch.qos.logback.core.spi.ContextAware declaredOrigin) |
public CompositeJsonFormatter(ch.qos.logback.core.spi.ContextAware declaredOrigin)
public void start()
start in interface ch.qos.logback.core.spi.LifeCyclepublic void stop()
stop in interface ch.qos.logback.core.spi.LifeCyclepublic boolean isStarted()
isStarted in interface ch.qos.logback.core.spi.LifeCyclepublic byte[] writeEventAsBytes(Event event) throws IOException
IOExceptionpublic void writeEventToOutputStream(Event event, OutputStream outputStream) throws IOException
IOExceptionpublic String writeEventAsString(Event event) throws IOException
IOExceptionprotected void writeEventToGenerator(com.fasterxml.jackson.core.JsonGenerator generator,
Event event)
throws IOException
IOExceptionprotected void prepareForDeferredProcessing(Event event)
public com.fasterxml.jackson.core.JsonFactory getJsonFactory()
public JsonFactoryDecorator getJsonFactoryDecorator()
public void setJsonFactoryDecorator(JsonFactoryDecorator jsonFactoryDecorator)
public JsonGeneratorDecorator getJsonGeneratorDecorator()
public void setJsonGeneratorDecorator(JsonGeneratorDecorator jsonGeneratorDecorator)
public JsonProviders<Event> getProviders()
public String getEncoding()
public void setEncoding(String encodingName)
public void setProviders(JsonProviders<Event> jsonProviders)
public boolean isFindAndRegisterJacksonModules()
public void setFindAndRegisterJacksonModules(boolean findAndRegisterJacksonModules)
Copyright © 2019. All rights reserved.