Deprecated API

Contents

Deprecated Fields

org.apache.log4j.helpers.DateLayout.DATE_FORMAT_OPTION
Options are now handled using the JavaBeans paradigm.
org.apache.log4j.helpers.DateLayout.TIMEZONE_OPTION
Options are now handled using the JavaBeans paradigm.
org.apache.log4j.HTMLLayout.LOCATION_INFO_OPTION
Options are now handled using the JavaBeans paradigm.
org.apache.log4j.spi.LoggingEvent.categoryName
This field will be marked as private in future releases.
org.apache.log4j.spi.LoggingEvent.level
This field will be marked as private in future releases.
org.apache.log4j.helpers.LogLog.CONFIG_DEBUG_KEY
Use DEBUG_KEY instead.
org.apache.log4j.LogManager.DEFAULT_CONFIGURATION_FILE
This variable is for internal use only.
org.apache.log4j.LogManager.DEFAULT_CONFIGURATION_KEY
This variable is for internal use only.
org.apache.log4j.LogManager.CONFIGURATOR_CLASS_KEY
This variable is for internal use only.
org.apache.log4j.LogManager.DEFAULT_INIT_OVERRIDE_KEY
This variable is for internal use only.
org.apache.log4j.varia.StringMatchFilter.STRING_TO_MATCH_OPTION
Options are now handled using the JavaBeans paradigm.
org.apache.log4j.varia.StringMatchFilter.ACCEPT_ON_MATCH_OPTION
Options are now handled using the JavaBeans paradigm.

Deprecated Methods

org.apache.log4j.Category.exists(String)
Please use LogManager.exists(String) instead.
org.apache.log4j.Category.getChainedPriority()
Please use the the getEffectiveLevel() method instead.
org.apache.log4j.Category.getCurrentCategories()
Please use LogManager.getCurrentLoggers() instead.
org.apache.log4j.Category.getDefaultHierarchy()
org.apache.log4j.Category.getHierarchy()
Please use getLoggerRepository() instead.
org.apache.log4j.Category.getPriority()
Please use getLevel() instead.
org.apache.log4j.Category.setPriority(Priority)
Please use setLevel(Level) instead.
org.apache.log4j.Category.shutdown()
Please use LogManager.shutdown() instead.
org.apache.log4j.helpers.DateLayout.getOptionStrings()
Use the setter method for the option directly instead of the generic setOption method.
org.apache.log4j.helpers.DateLayout.setOption(String,String)
Use the setter method for the option directly instead of the generic setOption method.
org.apache.log4j.varia.DenyAllFilter.getOptionStrings()
We now use JavaBeans introspection to configure components.
org.apache.log4j.varia.DenyAllFilter.setOption(String,String)
Use the setter method for the option directly instead of the generic setOption method.
org.apache.log4j.Hierarchy.getCurrentCategories()
Please use getCurrentLoggers() instead.
org.apache.log4j.Hierarchy.overrideAsNeeded(String)
Deprecated with no replacement.
org.apache.log4j.Hierarchy.setDisableOverride(String)
Deprecated with no replacement.
org.apache.log4j.spi.LoggerRepository.getCurrentCategories()
Please use getCurrentLoggers() instead.
org.apache.log4j.Priority.getAllPossiblePriorities()
This method will be removed with no replacement.
org.apache.log4j.Priority.toPriority(String)
Please use the Level.toLevel(String) method instead.}
org.apache.log4j.varia.StringMatchFilter.getOptionStrings()
We now use JavaBeans introspection to configure components.
org.apache.log4j.varia.StringMatchFilter.setOption(String,String)
Use the setter method for the option directly instead of the generic setOption method.

Copyright 2000-2002 Apache Software Foundation.