public class BrokerFileLoggerImpl extends AbstractBrokerLogger<BrokerFileLoggerImpl> implements BrokerFileLogger<BrokerFileLoggerImpl>, FileLoggerSettings
AbstractConfiguredObject.CallableWithArgument<V,A>, AbstractConfiguredObject.ChainedListenableFuture<V>, AbstractConfiguredObject.ChainedSettableFuture<V>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException
SECURED_STRING_VALUE
BROKER_FAIL_ON_LOGGER_IO_ERROR, DEFAULT_BROKER_FAIL_ON_LOGGER_IO_ERROR, 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 |
BrokerFileLoggerImpl(Map<String,Object> attributes,
Broker<?> broker) |
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 |
onClose() |
protected void |
postResolveChildren() |
void |
stopLogging() |
protected void |
validateChange(ConfiguredObject<?> proxyForValidation,
Set<String> changedAttributes) |
getLogInclusionRules, isVirtualHostLogEventExcluded, 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, 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, isVirtualHostLogEventExcluded
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 void postResolveChildren()
postResolveChildren
in class AbstractLogger<BrokerFileLoggerImpl>
protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
validateChange
in class AbstractConfiguredObject<BrokerFileLoggerImpl>
public String getFileName()
getFileName
in interface BrokerFileLogger<BrokerFileLoggerImpl>
getFileName
in interface FileLoggerSettings
public boolean isRollDaily()
isRollDaily
in interface BrokerFileLogger<BrokerFileLoggerImpl>
isRollDaily
in interface FileLoggerSettings
public boolean isRollOnRestart()
isRollOnRestart
in interface BrokerFileLogger<BrokerFileLoggerImpl>
isRollOnRestart
in interface FileLoggerSettings
public boolean isCompressOldFiles()
isCompressOldFiles
in interface BrokerFileLogger<BrokerFileLoggerImpl>
isCompressOldFiles
in interface FileLoggerSettings
public int getMaxHistory()
getMaxHistory
in interface BrokerFileLogger<BrokerFileLoggerImpl>
getMaxHistory
in interface FileLoggerSettings
public int getMaxFileSize()
getMaxFileSize
in interface BrokerFileLogger<BrokerFileLoggerImpl>
getMaxFileSize
in interface FileLoggerSettings
public String getLayout()
getLayout
in interface BrokerFileLogger<BrokerFileLoggerImpl>
getLayout
in interface FileLoggerSettings
public List<LogFileDetails> getLogFiles()
getLogFiles
in interface BrokerFileLogger<BrokerFileLoggerImpl>
public Content getFile(String fileName)
getFile
in interface BrokerFileLogger<BrokerFileLoggerImpl>
public Content getFiles(Set<String> fileName)
getFiles
in interface BrokerFileLogger<BrokerFileLoggerImpl>
public Content getAllFiles()
getAllFiles
in interface BrokerFileLogger<BrokerFileLoggerImpl>
public void stopLogging()
stopLogging
in interface BrokerLogger<BrokerFileLoggerImpl>
stopLogging
in class AbstractLogger<BrokerFileLoggerImpl>
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<BrokerFileLoggerImpl>
protected void onClose()
onClose
in class AbstractConfiguredObject<BrokerFileLoggerImpl>
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.