Interface RepositorySelector

public interface RepositorySelector

The LogManager uses one (and only one) RepositorySelector implementation to select the LoggerRepository for a particular application context.

It is the responsibility of the RepositorySelector implementation to track the application context. Log4j makes no assumptions about the application context or on its management.

See also LogManager.


Method Summary
 LoggerRepository getLoggerRepository()
          Returns a LoggerRepository depending on the context.

Method Detail


LoggerRepository getLoggerRepository()
Returns a LoggerRepository depending on the context. Implementers must make sure that a valid (non-null) LoggerRepository is returned.

a LoggerRepository.

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