Class SlingRollingFileAppender<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.UnsynchronizedAppenderBase<E>
ch.qos.logback.core.OutputStreamAppender<E>
ch.qos.logback.core.FileAppender<E>
ch.qos.logback.core.rolling.RollingFileAppender<E>
org.apache.sling.commons.log.logback.internal.util.SlingRollingFileAppender<E>
- Type Parameters:
E- the type of event the appender is for (usuallyILoggingEvent
- All Implemented Interfaces:
ch.qos.logback.core.Appender<E>,ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.FilterAttachable<E>,ch.qos.logback.core.spi.LifeCycle
public class SlingRollingFileAppender<E>
extends ch.qos.logback.core.rolling.RollingFileAppender<E>
Custom class to allow the SlingLogPanel to differentiate between default
appenders and Sling config based appenders
-
Field Summary
Fields inherited from class ch.qos.logback.core.FileAppender
append, COLLISION_WITH_EARLIER_APPENDER_URL, DEFAULT_BUFFER_SIZE, fileNameFields inherited from class ch.qos.logback.core.OutputStreamAppender
encoder, streamWriteLockFields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
name, startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable org.apache.sling.commons.log.logback.internal.LogWriterGet the LogWriter config associated with this appendervoidsetLogWriter(@Nullable org.apache.sling.commons.log.logback.internal.LogWriter logWriter) Set the LogWriter config associated with this appenderMethods inherited from class ch.qos.logback.core.rolling.RollingFileAppender
getFile, getRollingPolicy, getTriggeringPolicy, rollover, setFile, setRollingPolicy, setTriggeringPolicy, start, stop, subAppend, updateByteCountMethods inherited from class ch.qos.logback.core.FileAppender
addErrorForCollision, checkForFileCollisionInPreviousFileAppenders, isAppend, isPrudent, openFile, rawFileProperty, setAppend, setBufferSize, setPrudent, writeOutMethods inherited from class ch.qos.logback.core.OutputStreamAppender
append, closeOutputStream, getEncoder, getOutputStream, isImmediateFlush, setEncoder, setImmediateFlush, setLayout, setOutputStream, writeByteArrayToOutputStreamWithPossibleFlushMethods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
SlingRollingFileAppender
public SlingRollingFileAppender()
-
-
Method Details
-
getLogWriter
@Nullable public @Nullable org.apache.sling.commons.log.logback.internal.LogWriter getLogWriter()Get the LogWriter config associated with this appender- Returns:
- the LogWriter config object (or null if not set)
-
setLogWriter
public void setLogWriter(@Nullable @Nullable org.apache.sling.commons.log.logback.internal.LogWriter logWriter) Set the LogWriter config associated with this appender- Parameters:
logWriter- the config
-