Log4j 1.3alpha-1

Deprecated API

Deprecated Classes
org.apache.log4j.xml.DOMConfigurator
          Replaced by the much more flexible JoranConfigurator. 
org.apache.log4j.helpers.LogLog
          Use Logger instead. 
org.apache.log4j.Priority
            
org.apache.log4j.spi.RootCategory
          Replaced by RootLogger. 
 

Deprecated Fields
org.apache.log4j.helpers.DateLayout.DATE_FORMAT_OPTION
          Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term. 
org.apache.log4j.helpers.DateLayout.TIMEZONE_OPTION
          Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term. 
 

Deprecated Methods
org.apache.log4j.FileAppender.closeFile()
          Use the super class' WriterAppender.closeWriter() method instead. 
org.apache.log4j.Category.exists(String)
          Please use LogManager.exists(java.lang.String) instead. 
org.apache.log4j.Level.getAllPossiblePriorities()
          This method will be removed with no replacement. 
org.apache.log4j.Category.getChainedPriority()
          Please use the the Category.getEffectiveLevel() method instead. 
org.apache.log4j.Hierarchy.getCurrentCategories()
          Please use Hierarchy.getCurrentLoggers() instead. 
org.apache.log4j.Category.getCurrentCategories()
          Please use LogManager.getCurrentLoggers() instead. 
org.apache.log4j.spi.LoggerRepository.getCurrentCategories()
          Please use LoggerRepository.getCurrentLoggers() instead. 
org.apache.log4j.Category.getDefaultHierarchy()
          Please use LogManager.getLoggerRepository() instead. 
org.apache.log4j.Category.getHierarchy()
          Please use Category.getLoggerRepository() instead. 
org.apache.log4j.Category.getInstance(Class)
          Please use Logger.getLogger(Class) instead. 
org.apache.log4j.Category.getInstance(String)
          Please use the Logger.getLogger(String) method instead. 
org.apache.log4j.net.SocketReceiver.getListener()
          This receiver now supports multiple listeners 
org.apache.log4j.varia.DenyAllFilter.getOptionStrings()
          We now use JavaBeans introspection to configure components. Options strings are no longer needed. 
org.apache.log4j.Category.getPriority()
          Please use Category.getLevel() instead. 
org.apache.log4j.Category.getRoot()
          Please use the Logger.getRootLogger() method instead. 
org.apache.log4j.Category.isEnabledFor(Priority)
          Use the alternate form taking a parameter of type Level. 
org.apache.log4j.Category.log(Priority, Object)
          Use the form taking in a Level as a parameter. 
org.apache.log4j.Category.log(Priority, Object, Throwable)
          Use the form taking in a Level as a parameter. 
org.apache.log4j.Category.log(String, Priority, Object, Throwable)
          Use the form taking in a Level as a parameter. 
org.apache.log4j.MDC.put(String, Object)
          please use the MDC.put(String key, String val) form. 
org.apache.log4j.AsyncAppender.requiresLayout()
          Will be removed with no replacement. 
org.apache.log4j.net.SocketReceiver.setListener(SocketNodeEventListener)
          This receiver now supports multiple listeners and so this method simply removes the listener (if there already) and readds it to the list. The passed listener will also be returned via the getListener() method still, but this is also deprecated 
org.apache.log4j.net.SocketNode.setListener(SocketNodeEventListener)
          Now supports mutliple listeners, this method simply invokes the removeSocketNodeEventListener() to remove the listener, and then readds it. 
org.apache.log4j.varia.FallbackErrorHandler.setLogger(Logger)
          Use FallbackErrorHandler.addLogger(org.apache.log4j.Logger) instead. 
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.spi.LoggerRepository.setThreshold(Level)
          Will be removed with no replacement. 
org.apache.log4j.Category.shutdown()
          Please use LogManager.shutdown() instead. 
org.apache.log4j.WriterAppender.xreset()
          Use WriterAppender.closeWriter() method instead. 
 

Deprecated Constructors
org.apache.log4j.spi.LoggingEvent(String, Logger, long, Level, Object, Throwable)
          Please use the no argument constructor and the setter methods instead. 
 


Log4j 1.3alpha-1

Copyright 2000-2003 Apache Software Foundation.