# Deprecated API

## Contents

- Deprecated Methods

- Deprecated Methods
  Method and Description
  org.apache.log4j.LoggerRepositoryExImpl.addHierarchyEventListener(HierarchyEventListener) Superceded by addLoggerEventListener
  org.apache.log4j.LoggerRepositoryExImpl.getCurrentCategories() Please use `LoggerRepositoryExImpl.getCurrentLoggers()` instead.
  org.apache.log4j.net.SocketReceiver.getListener() This receiver now supports multiple listeners
  org.apache.log4j.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.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

Copyright © 2002-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.