Package ru.tinkoff.kora.logging.logback
Class ConsoleTextRecordEncoder
java.lang.Object
ru.tinkoff.kora.logging.logback.ConsoleTextRecordEncoder
- All Implemented Interfaces:
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 final class ConsoleTextRecordEncoder
extends Object
implements ch.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidaddStatus(ch.qos.logback.core.status.Status status) voidvoidbyte[]encode(ch.qos.logback.classic.spi.ILoggingEvent event) byte[]ch.qos.logback.core.Contextbyte[]booleanvoidsetContext(ch.qos.logback.core.Context context) voidstart()voidstop()
-
Constructor Details
-
ConsoleTextRecordEncoder
public ConsoleTextRecordEncoder()
-
-
Method Details
-
encode
public byte[] encode(ch.qos.logback.classic.spi.ILoggingEvent event) - Specified by:
encodein interfacech.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent>
-
headerBytes
public byte[] headerBytes()- Specified by:
headerBytesin interfacech.qos.logback.core.encoder.Encoder<ch.qos.logback.classic.spi.ILoggingEvent>
-
setContext
public void setContext(ch.qos.logback.core.Context context) - Specified by:
setContextin interfacech.qos.logback.core.spi.ContextAware
-
getContext
public ch.qos.logback.core.Context getContext()- Specified by:
getContextin interfacech.qos.logback.core.spi.ContextAware
-
addStatus
public void addStatus(ch.qos.logback.core.status.Status status) - Specified by:
addStatusin interfacech.qos.logback.core.spi.ContextAware
-
addInfo
- Specified by:
addInfoin interfacech.qos.logback.core.spi.ContextAware
-
addInfo
- Specified by:
addInfoin interfacech.qos.logback.core.spi.ContextAware
-
addWarn
- Specified by:
addWarnin interfacech.qos.logback.core.spi.ContextAware
-
addWarn
- Specified by:
addWarnin interfacech.qos.logback.core.spi.ContextAware
-
addError
- Specified by:
addErrorin interfacech.qos.logback.core.spi.ContextAware
-
addError
- Specified by:
addErrorin interfacech.qos.logback.core.spi.ContextAware
-
start
public void start()- Specified by:
startin interfacech.qos.logback.core.spi.LifeCycle
-
stop
public void stop()- Specified by:
stopin interfacech.qos.logback.core.spi.LifeCycle
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfacech.qos.logback.core.spi.LifeCycle
-