public class LazyRollingFileLogbackAppender<E>
extends ch.qos.logback.core.rolling.RollingFileAppender<E>
RollingFileAppender
implementation that supports lazy initialization of appender. It is useful
for example when appender should be used only when
condition is satisfied. This feature is
not supported by default.LazyFileOutputStream
Constructor and Description |
---|
LazyRollingFileLogbackAppender() |
Modifier and Type | Method and Description |
---|---|
void |
openFile(String file_name) |
getFile, getRollingPolicy, getTriggeringPolicy, rollover, setFile, setRollingPolicy, setTriggeringPolicy, start, stop, subAppend
addErrorForCollision, checkForFileCollisionInPreviousFileAppenders, isAppend, isPrudent, rawFileProperty, setAppend, setPrudent, writeOut
append, closeOutputStream, getEncoder, getOutputStream, setEncoder, setLayout, setOutputStream
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public void openFile(String file_name) throws IOException
openFile
in class ch.qos.logback.core.FileAppender<E>
IOException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.