Class IsyJsonLayout
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<E>
ch.qos.logback.contrib.json.JsonLayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>
ch.qos.logback.contrib.json.classic.JsonLayout
de.bund.bva.isyfact.logging.layout.IsyJsonLayout
- All Implemented Interfaces:
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent>,ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.LifeCycle
public class IsyJsonLayout
extends ch.qos.logback.contrib.json.classic.JsonLayout
Logback layout for formatting log entries as JSON.
In particular, the layout includes the passed markers.
-
Field Summary
Fields inherited from class ch.qos.logback.contrib.json.classic.JsonLayout
CONTEXT_ATTR_NAME, FORMATTED_MESSAGE_ATTR_NAME, includeContextName, includeException, includeFormattedMessage, includeLevel, includeLoggerName, includeMDC, includeMessage, includeThreadName, LEVEL_ATTR_NAME, LOGGER_ATTR_NAME, MDC_ATTR_NAME, MESSAGE_ATTR_NAME, THREAD_ATTR_NAME, TIMESTAMP_ATTR_NAMEFields inherited from class ch.qos.logback.contrib.json.JsonLayoutBase
appendLineSeparator, CONTENT_TYPE, includeTimestamp, jsonFormatter, timestampFormat, timestampFormatTimezoneIdFields inherited from class ch.qos.logback.core.LayoutBase
startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoLayout(ch.qos.logback.classic.spi.ILoggingEvent event) intvoidsetMaxLength(int maxLength) toJsonMap(ch.qos.logback.classic.spi.ILoggingEvent event) Methods inherited from class ch.qos.logback.contrib.json.classic.JsonLayout
addCustomDataToJsonMap, addThrowableInfo, getThrowableProxyConverter, isIncludeContextName, isIncludeException, isIncludeFormattedMessage, isIncludeLevel, isIncludeLoggerName, isIncludeMDC, isIncludeMessage, isIncludeThreadName, setIncludeContextName, setIncludeException, setIncludeFormattedMessage, setIncludeLevel, setIncludeLoggerName, setIncludeMDC, setIncludeMessage, setIncludeThreadName, setThrowableProxyConverter, start, stopMethods inherited from class ch.qos.logback.contrib.json.JsonLayoutBase
add, addMap, addTimestamp, createDateFormat, format, formatTimestamp, getContentType, getJsonFormatter, getTimestampFormat, getTimestampFormatTimezoneId, isAppendLineSeparator, isIncludeTimestamp, setAppendLineSeparator, setIncludeTimestamp, setJsonFormatter, setTimestampFormat, setTimestampFormatTimezoneIdMethods inherited from class ch.qos.logback.core.LayoutBase
getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeaderMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn
-
Constructor Details
-
IsyJsonLayout
public IsyJsonLayout()Class constructor.
-
-
Method Details
-
doLayout
- Specified by:
doLayoutin interfacech.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent>- Overrides:
doLayoutin classch.qos.logback.contrib.json.JsonLayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
toJsonMap
- Overrides:
toJsonMapin classch.qos.logback.contrib.json.classic.JsonLayout- See Also:
-
JsonLayout.toJsonMap(ch.qos.logback.classic.spi.ILoggingEvent)
-
getMaxLength
public int getMaxLength() -
setMaxLength
public void setMaxLength(int maxLength)
-