Class SingleLinePatternLayout
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.LayoutBase<E>
-
- ch.qos.logback.core.pattern.PatternLayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
- ch.qos.logback.classic.PatternLayout
-
- com.devonfw.module.logging.common.impl.SingleLinePatternLayout
-
- 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 SingleLinePatternLayout extends ch.qos.logback.classic.PatternLayoutCustomPatternLayoutfor logging entries.
-
-
Field Summary
Fields Modifier and Type Field Description private static intBUFFER_PER_LINEAverage buffer size per line of stack trace.private static StringLINE_SEPThe separator used as replacement for newlines.private static PatternLINEBREAK_PATTERNRegular expression for line breaks.private static StringNEWLINEOS specific line separator.
-
Constructor Summary
Constructors Constructor Description SingleLinePatternLayout()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdoLayout(ch.qos.logback.classic.spi.ILoggingEvent event)Creates formatted String, using conversion pattern.private StringpreventLogForging(String logMsg)Method to prevent log forging.-
Methods inherited from class ch.qos.logback.classic.PatternLayout
getDefaultConverterMap, getPresentationHeaderPrefix
-
Methods inherited from class ch.qos.logback.core.pattern.PatternLayoutBase
getEffectiveConverterMap, getInstanceConverterMap, getPattern, getPresentationHeader, isOutputPatternAsHeader, setContextForConverters, setOutputPatternAsHeader, setPattern, setPostCompileProcessor, start, toString, writeLoopOnConverters
-
Methods inherited from class ch.qos.logback.core.LayoutBase
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManager
-
-
-
-
Field Detail
-
LINE_SEP
private static final String LINE_SEP
The separator used as replacement for newlines.- See Also:
- Constant Field Values
-
NEWLINE
private static final String NEWLINE
OS specific line separator.
-
LINEBREAK_PATTERN
private static final Pattern LINEBREAK_PATTERN
Regular expression for line breaks.
-
BUFFER_PER_LINE
private static final int BUFFER_PER_LINE
Average buffer size per line of stack trace.- See Also:
- Constant Field Values
-
-
Method Detail
-
doLayout
public String doLayout(ch.qos.logback.classic.spi.ILoggingEvent event)
Creates formatted String, using conversion pattern.- Specified by:
doLayoutin interfacech.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent>- Overrides:
doLayoutin classch.qos.logback.classic.PatternLayout- Parameters:
event- ILoggingEvent- Returns:
- String Formatted event as string in one line
-
-