クラス StructuredLogEncoder
java.lang.ObjectSE
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.encoder.EncoderBase<ILoggingEvent>
org.springframework.boot.logging.logback.StructuredLogEncoder
- 実装済みのインターフェース一覧:
Encoder<ILoggingEvent>, ContextAware, LifeCycle
構造化ログ記録用の
Logback encoder。- 導入:
- 3.4.0
- 作成者:
- Moritz Halbritter, Phillip Webb
- 関連事項:
フィールド概要
クラス EncoderBase から継承されたフィールド
startedクラス ContextAwareBase から継承されたフィールド
contextコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明byte[]encode(ILoggingEvent event) byte @Nullable []byte @Nullable []voidsetCharset(@Nullable CharsetSE charset) voidvoidstart()voidstop()クラス EncoderBase から継承されたメソッド
isStartedクラス ContextAwareBase から継承されたメソッド
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース ContextAware から継承されたメソッド
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
コンストラクターの詳細
StructuredLogEncoder
public StructuredLogEncoder()
方法の詳細
setFormat
setCharset
start
public void start()- 次で指定:
- インターフェース
LifeCycle内のstart - オーバーライド:
- クラス
EncoderBase<ILoggingEvent>のstart
stop
public void stop()- 次で指定:
- インターフェース
LifeCycle内のstop - オーバーライド:
- クラス
EncoderBase<ILoggingEvent>のstop
headerBytes
encode