# Deprecated API

## Contents

- Deprecated Methods
- Deprecated Constructors

- Deprecated Methods
  Method and Description
  org.apache.log4j.LoggerRepositoryExImpl.addHierarchyEventListener(HierarchyEventListener) Superceded by addLoggerEventListener
  org.apache.log4j.rolling.RollingPolicyBase.getActiveFileName() Duplicates FileAppender.file and should be removed
  org.apache.log4j.LoggerRepositoryExImpl.getCurrentCategories() Please use `LoggerRepositoryExImpl.getCurrentLoggers()` instead.
  org.apache.log4j.receivers.net.SocketReceiver.getListener() This receiver now supports multiple listeners
  org.apache.log4j.filter.DenyAllFilter.getOptionStrings() We now use JavaBeans introspection to configure components. Options strings are no longer needed.
  org.apache.log4j.rolling.RollingPolicyBase.setActiveFileName(String) Duplicates FileAppender.file and should be removed
  org.apache.log4j.receivers.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.receivers.net.SocketNode13.setListener(SocketNodeEventListener) Now supports mutliple listeners, this method simply invokes the removeSocketNodeEventListener() to remove the listener, and then readds it.
  org.apache.log4j.filter.DenyAllFilter.setOption(String, String) Use the setter method for the option directly instead of the generic `setOption` method.

- Deprecated Constructors
  Constructor and Description
  org.apache.log4j.pattern.ExtrasFormattingInfo(boolean, int, int) since 1.2.17

Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0

Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.