Class ApiLoggerAdapter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, LoggerAdapter<java.util.logging.Logger>

    public class ApiLoggerAdapter
    extends AbstractLoggerAdapter
    Logger registry implementation using just log4j-api. This is the fallback registry used when log4j-core is not available.
    Since:
    2.1
    • Constructor Detail

      • ApiLoggerAdapter

        public ApiLoggerAdapter()
    • Method Detail

      • newLogger

        protected java.util.logging.Logger newLogger​(java.lang.String name,
                                                     LoggerContext context)
        Description copied from class: AbstractLoggerAdapter
        Creates a new named logger for a given LoggerContext.
        Specified by:
        newLogger in class AbstractLoggerAdapter<java.util.logging.Logger>
        Parameters:
        name - the name of the logger to create
        context - the LoggerContext this logger will be associated with
        Returns:
        the new named logger