public class SingleLinePatternLayout
extends ch.qos.logback.classic.PatternLayout
PatternLayout for logging entries.| Modifier and Type | Field and Description |
|---|---|
private static int |
BUFFER_PER_LINE
Average buffer size per line of stack trace.
|
private static String |
LINE_SEP
The separator used as replacement for newlines.
|
private static Pattern |
LINEBREAK_PATTERN
Regular expression for line breaks.
|
private static String |
NEWLINE
OS specific line separator.
|
| Constructor and Description |
|---|
SingleLinePatternLayout()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
doLayout(ch.qos.logback.classic.spi.ILoggingEvent event)
Creates formatted String, using conversion pattern.
|
private String |
preventLogForging(String logMsg)
Method to prevent log forging.
|
getDefaultConverterMap, getPresentationHeaderPrefixgetEffectiveConverterMap, getInstanceConverterMap, getPattern, getPresentationHeader, isOutputPatternAsHeader, setContextForConverters, setOutputPatternAsHeader, setPattern, setPostCompileProcessor, start, toString, writeLoopOnConvertersgetContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerprivate static final String LINE_SEP
private static final String NEWLINE
private static final Pattern LINEBREAK_PATTERN
private static final int BUFFER_PER_LINE
public String doLayout(ch.qos.logback.classic.spi.ILoggingEvent event)
doLayout in interface ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent>doLayout in class ch.qos.logback.classic.PatternLayoutevent - ILoggingEventCopyright © 2014–2019 devon4j-Team. All rights reserved.