public class VirtualHostFileLoggerImpl extends AbstractVirtualHostLogger<VirtualHostFileLoggerImpl> implements VirtualHostFileLogger<VirtualHostFileLoggerImpl>, FileLoggerSettings
AbstractConfiguredObject.CallableWithArgument<V,A>, AbstractConfiguredObject.ChainedListenableFuture<V>, AbstractConfiguredObject.ChainedSettableFuture<V>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException
SECURED_STRING_VALUE
FILE_NAME, MAX_FILE_SIZE, TYPE
CONTEXT, CREATED_BY, CREATED_TIME, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE
Modifier | Constructor and Description |
---|---|
protected |
VirtualHostFileLoggerImpl(Map<String,Object> attributes,
VirtualHost<?,?,?> virtualHost) |
Modifier and Type | Method and Description |
---|---|
protected ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> |
createAppenderInstance(ch.qos.logback.core.Context loggerContext) |
Content |
getAllFiles() |
ScheduledExecutorService |
getExecutorService() |
Content |
getFile(String fileName) |
String |
getFileName() |
Content |
getFiles(Set<String> fileName) |
String |
getLayout() |
List<LogFileDetails> |
getLogFiles() |
int |
getMaxFileSize() |
int |
getMaxHistory() |
RollingPolicyDecorator.RolloverListener |
getRolloverListener() |
boolean |
isCompressOldFiles() |
boolean |
isRollDaily() |
boolean |
isRollOnRestart() |
protected void |
postResolveChildren() |
void |
stopLogging() |
protected void |
validateChange(ConfiguredObject<?> proxyForValidation,
Set<String> changedAttributes) |
getLogInclusionRules, onResolve
addChildAsync, addLogInclusionRule, getErrorCount, getWarnCount, removeLogInclusionRule
addChangeListener, applyToChildren, asObjectRecord, attainState, attributeSet, authoriseCreate, authoriseCreateChild, authoriseDelete, authoriseSetAttributes, beforeClose, changeAttribute, changeAttributes, childAdded, childRemoved, close, closeAsync, closeChildren, create, createAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, deleted, doAfter, doAfter, doAfter, doAfter, doAfter, doAfter, doAfterAlways, doAfterAlways, doCreation, doOnConfigThread, doOpening, doResolution, doSync, doSync, doValidation, findConfiguredObject, forceUpdateAllSecureAttributes, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getSecurityManager, getState, getStatistics, getTaskExecutor, getType, getTypeClass, handleExceptionOnOpen, isDurable, managesChildStorage, notifyStateChanged, onClose, onCreate, onExceptionInOpen, onOpen, onValidate, open, openAsync, parentsMap, postResolve, registerWithParents, removeChangeListener, rethrowRuntimeExceptionsOnOpen, runTask, setAttribute, setAttributes, setAttributesAsync, setEncrypter, setState, start, startAsync, stop, toString, validateOnCreate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getErrorCount, getWarnCount
addChangeListener, asObjectRecord, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getTaskExecutor, getType, getTypeClass, isDurable, managesChildStorage, open, openAsync, removeChangeListener, setAttribute, setAttributes, setAttributesAsync
protected VirtualHostFileLoggerImpl(Map<String,Object> attributes, VirtualHost<?,?,?> virtualHost)
protected void postResolveChildren()
postResolveChildren
in class AbstractLogger<VirtualHostFileLoggerImpl>
protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
validateChange
in class AbstractConfiguredObject<VirtualHostFileLoggerImpl>
public String getFileName()
getFileName
in interface FileLoggerSettings
getFileName
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public boolean isRollDaily()
isRollDaily
in interface FileLoggerSettings
isRollDaily
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public boolean isRollOnRestart()
isRollOnRestart
in interface FileLoggerSettings
isRollOnRestart
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public boolean isCompressOldFiles()
isCompressOldFiles
in interface FileLoggerSettings
isCompressOldFiles
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public int getMaxHistory()
getMaxHistory
in interface FileLoggerSettings
getMaxHistory
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public int getMaxFileSize()
getMaxFileSize
in interface FileLoggerSettings
getMaxFileSize
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public String getLayout()
getLayout
in interface FileLoggerSettings
getLayout
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public List<LogFileDetails> getLogFiles()
getLogFiles
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public Content getFile(String fileName)
getFile
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public Content getFiles(Set<String> fileName)
getFiles
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public Content getAllFiles()
getAllFiles
in interface VirtualHostFileLogger<VirtualHostFileLoggerImpl>
public void stopLogging()
stopLogging
in interface VirtualHostLogger<VirtualHostFileLoggerImpl>
stopLogging
in class AbstractLogger<VirtualHostFileLoggerImpl>
public RollingPolicyDecorator.RolloverListener getRolloverListener()
getRolloverListener
in interface FileLoggerSettings
public ScheduledExecutorService getExecutorService()
getExecutorService
in interface FileLoggerSettings
protected ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> createAppenderInstance(ch.qos.logback.core.Context loggerContext)
createAppenderInstance
in class AbstractLogger<VirtualHostFileLoggerImpl>
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.