public class BrokerFileLoggerImpl extends AbstractBrokerLogger<BrokerFileLoggerImpl> implements BrokerFileLogger<BrokerFileLoggerImpl>, FileLoggerSettings
AbstractConfiguredObject.CallableWithArgument<V,A>, AbstractConfiguredObject.ChainedListenableFuture<V>, AbstractConfiguredObject.ChainedSettableFuture<V>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameExceptionSECURED_STRING_VALUEBROKER_FAIL_ON_LOGGER_IO_ERROR, DEFAULT_BROKER_FAIL_ON_LOGGER_IO_ERROR, FILE_NAME, MAX_FILE_SIZE, TYPEAWAIT_ATTAINMENT_TIMEOUT, CONTEXT, CREATED_BY, CREATED_TIME, DEFAULT_AWAIT_ATTAINMENT_TIMEOUT, 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, onResolveaddChildAsync, addLogInclusionRule, getErrorCount, getSupportedBrokerLoggerChildTypes, getSupportedVirtualHostLoggerChildTypes, getWarnCount, removeLogInclusionRuleaddChangeListener, addFutureCallback, applyToChildren, asObjectRecord, attainState, attributeSet, authorise, authorise, authorise, authoriseCreateChild, authoriseSetAttributes, awaitChildClassToAttainState, awaitChildClassToAttainState, 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, getAccessControl, getActualAttributes, getAncestor, 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, getSubjectWithAddedSystemRights, getSystemPrincipal, getSystemTaskControllerContext, getSystemTaskSubject, getSystemTaskSubject, getTaskExecutor, getType, getTypeClass, getUserPreferences, handleExceptionOnOpen, hasEncrypter, isDurable, isSystemProcess, isSystemSubject, managesChildStorage, newToken, notifyStateChanged, onCreate, onExceptionInOpen, onOpen, onValidate, open, openAsync, parentsMap, postResolve, registerWithParents, removeChangeListener, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setEncrypter, setState, setUserPreferences, start, startAsync, stop, toString, updateModel, validateChildDelete, validateOnCreateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetErrorCount, getWarnCount, isVirtualHostLogEventExcludedaddChangeListener, asObjectRecord, authorise, authorise, authorise, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getType, getTypeClass, getUserPreferences, hasEncrypter, isDurable, managesChildStorage, newToken, open, openAsync, removeChangeListener, setAttributes, setAttributesAsync, setUserPreferencesgetContextKeys, getContextValue, getContextValuegetTaskExecutorprotected 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 FileLoggerSettingspublic boolean isRollDaily()
isRollDaily in interface BrokerFileLogger<BrokerFileLoggerImpl>isRollDaily in interface FileLoggerSettingspublic boolean isRollOnRestart()
isRollOnRestart in interface BrokerFileLogger<BrokerFileLoggerImpl>isRollOnRestart in interface FileLoggerSettingspublic boolean isCompressOldFiles()
isCompressOldFiles in interface BrokerFileLogger<BrokerFileLoggerImpl>isCompressOldFiles in interface FileLoggerSettingspublic int getMaxHistory()
getMaxHistory in interface BrokerFileLogger<BrokerFileLoggerImpl>getMaxHistory in interface FileLoggerSettingspublic int getMaxFileSize()
getMaxFileSize in interface BrokerFileLogger<BrokerFileLoggerImpl>getMaxFileSize in interface FileLoggerSettingspublic String getLayout()
getLayout in interface BrokerFileLogger<BrokerFileLoggerImpl>getLayout in interface FileLoggerSettingspublic 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 FileLoggerSettingspublic ScheduledExecutorService getExecutorService()
getExecutorService in interface FileLoggerSettingsprotected 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–2017 The Apache Software Foundation. All rights reserved.