public abstract class CompositeJsonEncoder<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>
extends ch.qos.logback.core.encoder.EncoderBase<Event>
| Constructor and Description |
|---|
CompositeJsonEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract CompositeJsonFormatter<Event> |
createFormatter() |
void |
doEncode(Event event) |
String |
getEncoding() |
protected CompositeJsonFormatter<Event> |
getFormatter() |
JsonFactoryDecorator |
getJsonFactoryDecorator() |
JsonGeneratorDecorator |
getJsonGeneratorDecorator() |
String |
getLineSeparator() |
ch.qos.logback.core.encoder.Encoder<Event> |
getPrefix() |
JsonProviders<Event> |
getProviders() |
ch.qos.logback.core.encoder.Encoder<Event> |
getSuffix() |
void |
init(OutputStream os) |
boolean |
isImmediateFlush() |
void |
setEncoding(String encodingName)
The character encoding to use (default = "UTF-8").
|
void |
setImmediateFlush(boolean immediateFlush) |
void |
setJsonFactoryDecorator(JsonFactoryDecorator jsonFactoryDecorator) |
void |
setJsonGeneratorDecorator(JsonGeneratorDecorator jsonGeneratorDecorator) |
void |
setLineSeparator(String lineSeparator)
Sets which lineSeparator to use between events.
|
void |
setPrefix(ch.qos.logback.core.encoder.Encoder<Event> prefix) |
void |
setProviders(JsonProviders<Event> jsonProviders) |
void |
setSuffix(ch.qos.logback.core.encoder.Encoder<Event> suffix) |
void |
start() |
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextprotected abstract CompositeJsonFormatter<Event> createFormatter()
public void init(OutputStream os) throws IOException
init in interface ch.qos.logback.core.encoder.Encoder<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>init in class ch.qos.logback.core.encoder.EncoderBase<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>IOExceptionpublic void doEncode(Event event) throws IOException
IOExceptionpublic void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class ch.qos.logback.core.encoder.EncoderBase<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>public void stop()
stop in interface ch.qos.logback.core.spi.LifeCyclestop in class ch.qos.logback.core.encoder.EncoderBase<Event extends ch.qos.logback.core.spi.DeferredProcessingAware>public void close()
throws IOException
IOExceptionpublic JsonProviders<Event> getProviders()
public void setProviders(JsonProviders<Event> jsonProviders)
public boolean isImmediateFlush()
public void setImmediateFlush(boolean immediateFlush)
public JsonFactoryDecorator getJsonFactoryDecorator()
public void setJsonFactoryDecorator(JsonFactoryDecorator jsonFactoryDecorator)
public JsonGeneratorDecorator getJsonGeneratorDecorator()
public String getEncoding()
public void setEncoding(String encodingName)
JsonEncodingpublic void setJsonGeneratorDecorator(JsonGeneratorDecorator jsonGeneratorDecorator)
public String getLineSeparator()
public void setLineSeparator(String lineSeparator)
The following values have special meaning:
Any other value will be used as given as the lineSeparator.
protected CompositeJsonFormatter<Event> getFormatter()
public ch.qos.logback.core.encoder.Encoder<Event> getPrefix()
public void setPrefix(ch.qos.logback.core.encoder.Encoder<Event> prefix)
public ch.qos.logback.core.encoder.Encoder<Event> getSuffix()
public void setSuffix(ch.qos.logback.core.encoder.Encoder<Event> suffix)
Copyright © 2016. All Rights Reserved.