类 StructuredLogEncoder
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.ILoggingEvent>
org.springframework.boot.logging.logback.StructuredLogEncoder
- 所有已实现的接口:
ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent>,ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.LifeCycle
public class StructuredLogEncoder
extends ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.ILoggingEvent>
Logback encoder for structured logging.- 从以下版本开始:
- 3.4.0
- 作者:
- Moritz Halbritter, Phillip Webb
- 另请参阅:
-
字段概要
从类继承的字段 ch.qos.logback.core.encoder.EncoderBase
started从类继承的字段 ch.qos.logback.core.spi.ContextAwareBase
context -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明byte[]encode(ch.qos.logback.classic.spi.ILoggingEvent event) byte[]byte[]voidsetCharset(Charset charset) voidvoidstart()voidstop()从类继承的方法 ch.qos.logback.core.encoder.EncoderBase
isStarted从类继承的方法 ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
构造器详细资料
-
StructuredLogEncoder
public StructuredLogEncoder()
-
-
方法详细资料
-
setFormat
-
setCharset
-
start
public void start()- 指定者:
start在接口中ch.qos.logback.core.spi.LifeCycle- 覆盖:
start在类中ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
stop
public void stop()- 指定者:
stop在接口中ch.qos.logback.core.spi.LifeCycle- 覆盖:
stop在类中ch.qos.logback.core.encoder.EncoderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
headerBytes
public byte[] headerBytes() -
encode
public byte[] encode(ch.qos.logback.classic.spi.ILoggingEvent event)
-