Package org.apache.logging.log4j.jul

  • Interface Summary 
    Interface Description
    LevelConverter
    Strategy interface to convert between custom Log4j Levels and JUL Levels.
  • Class Summary 
    Class Description
    AbstractLoggerAdapter
    Abstract Logger registry.
    ApiLogger
    Log4j API implementation of the JUL Logger class.
    ApiLoggerAdapter
    Logger registry implementation using just log4j-api.
    Constants
    Constants for the JUL adapter.
    CoreLogger
    Log4j Core implementation of the JUL Logger class.
    CoreLoggerAdapter
    Logger registry implementation that uses log4j-core.
    DefaultLevelConverter
    Default implementation of LevelConverter strategy.
    LevelTranslator
    Utility class to convert between JDK Levels and Log4j 2 Levels.
    Log4jBridgeHandler
    Bridge from JUL to log4j2.
    This is an alternative to log4j.jul.LogManager (running as complete JUL replacement), especially useful for webapps running on a container for which the LogManager cannot or should not be used.

    Installation/usage: Declaratively inside JUL's logging.properties:
    handlers = org.apache.logging.log4j.jul.Log4jBridgeHandler
    (and typically also:   org.apache.logging.log4j.jul.Log4jBridgeHandler.propagateLevels = true )
    Note: in a webapp running on Tomcat, you may create a WEB-INF/classes/logging.properties file to configure JUL for this webapp only: configured handlers and log levels affect your webapp only! This file is then the complete JUL configuration, so JUL's defaults (e.g.
    LogManager
    Log4j implementation of LogManager.
    NoOpLogger
    Dummy version of a java.util.Logger.

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