org.apache.logging.log4j.spi

Interface LoggerAdapter<L>

  • Type Parameters:
    L - the external logger class for this registry (e.g., org.slf4j.Logger)
    All Superinterfaces:
    AutoCloseable, Closeable
    All Known Implementing Classes:
    AbstractLoggerAdapter


    public interface LoggerAdapter<L>
    extends Closeable
    A basic registry for LoggerContext objects and their associated external Logger classes. This registry should not be used for Log4j Loggers; it is instead used for creating bridges to other external log systems.
    Since:
    2.1
    • Method Detail

      • getLogger

        L getLogger(String name)
        Gets a named logger. Implementations should defer to the abstract methods in AbstractLoggerAdapter.
        Parameters:
        name - the name of the logger to get
        Returns:
        the named logger

Copyright © 1999-2023 The 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.