er.extensions.logging
Class ERXLog4JConfiguration
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.logging.ERXLog4JConfiguration
- All Implemented Interfaces:
- com.webobjects.appserver.WOActionResults, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions, com.webobjects.foundation.NSValidation, java.io.Serializable, java.lang.Cloneable
public class ERXLog4JConfiguration
- extends com.webobjects.appserver.WOComponent
Configures and manages the log4j logging system. Will also configure the system for rapid turn around, i.e. when
WOCaching is disabled when the conf file changes it will get reloaded.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException |
Fields inherited from class com.webobjects.appserver.WOComponent |
_Extension, _IsEventLoggingEnabled, _keyAssociations |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
_CLASS |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NullValue |
Fields inherited from interface com.webobjects.foundation.NSValidation |
_CLASS |
Methods inherited from class com.webobjects.appserver.WOComponent |
_associationWithName, _awakeInContext, _childTemplate, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
filterLevel
public ERXLog4JConfiguration.LoggerLevel filterLevel
newLoggerLevel
public ERXLog4JConfiguration.LoggerLevel newLoggerLevel
anAppender
public org.apache.log4j.AppenderSkeleton anAppender
aLevel
public org.apache.log4j.Level aLevel
aLoggerLevel
public ERXLog4JConfiguration.LoggerLevel aLoggerLevel
isNewLoggerARuleLogger
public boolean isNewLoggerARuleLogger
showAll
public boolean showAll
rowIndex
public int rowIndex
aPageSection
public ERXLog4JConfiguration.PageSection aPageSection
NAME_SORT_ORDERING
public static final com.webobjects.eocontrol.EOSortOrdering NAME_SORT_ORDERING
SORT_BY_NAME
public static final com.webobjects.foundation.NSMutableArray SORT_BY_NAME
ERXLog4JConfiguration
public ERXLog4JConfiguration(com.webobjects.appserver.WOContext aContext)
logger
public org.apache.log4j.Logger logger()
setLogger
public void setLogger(org.apache.log4j.Logger newValue)
filterString
public java.lang.String filterString()
setFilterString
public void setFilterString(java.lang.String newValue)
loggerName
public java.lang.String loggerName()
setLoggerName
public void setLoggerName(java.lang.String newValue)
ruleKey
public java.lang.String ruleKey()
setRuleKey
public void setRuleKey(java.lang.String newValue)
pageSections
public com.webobjects.foundation.NSArray pageSections()
activeSection
public java.lang.String activeSection()
setActiveSection
public void setActiveSection(java.lang.String name)
loggers
public com.webobjects.foundation.NSArray loggers()
- Gets all of the configured
loggers
that pass the filters for logger name and level.
- Returns:
- the loggers
addLogger
public void addLogger(org.apache.log4j.Logger log,
com.webobjects.foundation.NSMutableArray result)
- Adds a logger instance to the provided array, filtering those that don't fit the filter string / filter level.
- Parameters:
log
- to addresult
- array to which the logger will be added if it passes the filter constraint
currentLoggerLevel
public ERXLog4JConfiguration.LoggerLevel currentLoggerLevel()
setCurrentLoggerLevel
public void setCurrentLoggerLevel(ERXLog4JConfiguration.LoggerLevel loggerLevel)
classNameForLoggerLevelName
public java.lang.String classNameForLoggerLevelName()
classForLoggerRow
public java.lang.String classForLoggerRow()
omitLoggerLevelSettingDecoration
public boolean omitLoggerLevelSettingDecoration()
loggerLevels
public com.webobjects.foundation.NSArray loggerLevels()
loggerLevelsWithoutUnset
public com.webobjects.foundation.NSArray loggerLevelsWithoutUnset()
loggerRepository
public org.apache.log4j.spi.LoggerRepository loggerRepository()
classNameForLoggerRepositoryThresholdName
public java.lang.String classNameForLoggerRepositoryThresholdName()
omitLoggerRepositoryThresholdSettingDecoration
public boolean omitLoggerRepositoryThresholdSettingDecoration()
appenders
public com.webobjects.foundation.NSArray appenders()
- Gets the attached to the loggers. This class currently only knows how to work with appenders that subclass
AppenderSkeleton
.
- Returns:
- the array of appenders
levelsWithoutUnset
public com.webobjects.foundation.NSArray levelsWithoutUnset()
currentAppenderLevel
public ERXLog4JConfiguration.LoggerLevel currentAppenderLevel()
setCurrentAppenderLevel
public void setCurrentAppenderLevel(ERXLog4JConfiguration.LoggerLevel loggerLevel)
classForAppenderRow
public java.lang.String classForAppenderRow()
classNameForAppenderThresholdName
public java.lang.String classNameForAppenderThresholdName()
omitAppenderThresholdSettingDecoration
public boolean omitAppenderThresholdSettingDecoration()
updateAppenderSettings
public com.webobjects.appserver.WOComponent updateAppenderSettings()
updateRepositorySettings
public com.webobjects.appserver.WOComponent updateRepositorySettings()
filter
public com.webobjects.appserver.WOComponent filter()
resetFilter
public com.webobjects.appserver.WOComponent resetFilter()
update
public com.webobjects.appserver.WOComponent update()
showAllLoggersSelection
public java.lang.String showAllLoggersSelection()
setShowAllLoggersSelection
public void setShowAllLoggersSelection(java.lang.String value)
addLogger
public com.webobjects.appserver.WOComponent addLogger()
loggerPropertiesString
public java.lang.String loggerPropertiesString()
appendToResponse
public void appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
- Overrides:
appendToResponse
in class com.webobjects.appserver.WOComponent
conversionPattern
public java.lang.String conversionPattern()
setConversionPattern
public void setConversionPattern(java.lang.String newPattern)
updateConversionPattern
public com.webobjects.appserver.WOComponent updateConversionPattern()
classForNavItem
public java.lang.String classForNavItem()
classForLoggersDiv
public java.lang.String classForLoggersDiv()
classForRepositoryDiv
public java.lang.String classForRepositoryDiv()
classForAppendersDiv
public java.lang.String classForAppendersDiv()
classForOtherSettingsDiv
public java.lang.String classForOtherSettingsDiv()
classForLoggerConfigurationControlBar
public java.lang.String classForLoggerConfigurationControlBar()
awake
public void awake()
- Overrides:
awake
in class com.webobjects.appserver.WOComponent
Copyright © 2002 – 2007 Project Wonder.