Project Wonder 5.0

er.extensions.logging
Class ERXLog4JConfiguration

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by 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 Class Summary
protected static class ERXLog4JConfiguration.LoggerLevel
          A representation of the various Logger levels.
static class ERXLog4JConfiguration.PageSection
          A representation of the available page sections/views.
 
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
 
Field Summary
 org.apache.log4j.Level aLevel
           
 ERXLog4JConfiguration.LoggerLevel aLoggerLevel
           
 org.apache.log4j.AppenderSkeleton anAppender
           
 ERXLog4JConfiguration.PageSection aPageSection
           
 ERXLog4JConfiguration.LoggerLevel filterLevel
           
 boolean isNewLoggerARuleLogger
           
static com.webobjects.eocontrol.EOSortOrdering NAME_SORT_ORDERING
           
 ERXLog4JConfiguration.LoggerLevel newLoggerLevel
           
 int rowIndex
           
 boolean showAll
           
static com.webobjects.foundation.NSMutableArray SORT_BY_NAME
           
 
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
 
Constructor Summary
ERXLog4JConfiguration(com.webobjects.appserver.WOContext aContext)
           
 
Method Summary
 java.lang.String activeSection()
           
 com.webobjects.appserver.WOComponent addLogger()
           
 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.
 com.webobjects.foundation.NSArray appenders()
          Gets the attached to the loggers.
 void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
           
 void awake()
           
 java.lang.String classForAppenderRow()
           
 java.lang.String classForAppendersDiv()
           
 java.lang.String classForLoggerConfigurationControlBar()
           
 java.lang.String classForLoggerRow()
           
 java.lang.String classForLoggersDiv()
           
 java.lang.String classForNavItem()
           
 java.lang.String classForOtherSettingsDiv()
           
 java.lang.String classForRepositoryDiv()
           
 java.lang.String classNameForAppenderThresholdName()
           
 java.lang.String classNameForLoggerLevelName()
           
 java.lang.String classNameForLoggerRepositoryThresholdName()
           
 java.lang.String conversionPattern()
           
 ERXLog4JConfiguration.LoggerLevel currentAppenderLevel()
           
 ERXLog4JConfiguration.LoggerLevel currentLoggerLevel()
           
 com.webobjects.appserver.WOComponent filter()
           
 java.lang.String filterString()
           
 com.webobjects.foundation.NSArray levelsWithoutUnset()
           
 org.apache.log4j.Logger logger()
           
 com.webobjects.foundation.NSArray loggerLevels()
           
 com.webobjects.foundation.NSArray loggerLevelsWithoutUnset()
           
 java.lang.String loggerName()
           
 java.lang.String loggerPropertiesString()
           
 org.apache.log4j.spi.LoggerRepository loggerRepository()
           
 com.webobjects.foundation.NSArray loggers()
          Gets all of the configured loggers that pass the filters for logger name and level.
 boolean omitAppenderThresholdSettingDecoration()
           
 boolean omitLoggerLevelSettingDecoration()
           
 boolean omitLoggerRepositoryThresholdSettingDecoration()
           
 com.webobjects.foundation.NSArray pageSections()
           
 com.webobjects.appserver.WOComponent resetFilter()
           
 java.lang.String ruleKey()
           
 void setActiveSection(java.lang.String name)
           
 void setConversionPattern(java.lang.String newPattern)
           
 void setCurrentAppenderLevel(ERXLog4JConfiguration.LoggerLevel loggerLevel)
           
 void setCurrentLoggerLevel(ERXLog4JConfiguration.LoggerLevel loggerLevel)
           
 void setFilterString(java.lang.String newValue)
           
 void setLogger(org.apache.log4j.Logger newValue)
           
 void setLoggerName(java.lang.String newValue)
           
 void setRuleKey(java.lang.String newValue)
           
 void setShowAllLoggersSelection(java.lang.String value)
           
 java.lang.String showAllLoggersSelection()
           
 com.webobjects.appserver.WOComponent update()
           
 com.webobjects.appserver.WOComponent updateAppenderSettings()
           
 com.webobjects.appserver.WOComponent updateConversionPattern()
           
 com.webobjects.appserver.WOComponent updateRepositorySettings()
           
 
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
 

Field Detail

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
Constructor Detail

ERXLog4JConfiguration

public ERXLog4JConfiguration(com.webobjects.appserver.WOContext aContext)
Method Detail

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 add
result - 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

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.