Class ACLLoggerFactory

  • All Implemented Interfaces:
    Prioritized, java.lang.Comparable<Prioritized>

    public class ACLLoggerFactory
    extends LoggerFactory
    LoggerFactory implementation for Apache Commons Logging (ACL).

    ACLLoggerFactory provides a bridge to the Apache Commons Logging framework, creating and managing instances of the Logger interface backed by ACL's Log.

    Example Usage

    Normally, this factory is automatically discovered and used when Apache Commons Logging is present on the classpath. However, it can also be explicitly set as the logging provider:
    
     // Explicitly setting ACLLoggerFactory as the logging provider
     LoggerFactory factory = new ACLLoggerFactory();
     Logger logger = factory.createLogger("com.example.MyClass");
     logger.info("This is an info message.");
     

    Integration with Prioritized Interface

    This factory has a defined priority level (getPriority()) that determines its precedence among other available logging frameworks. The higher the number, the lower the priority.
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    LoggerFactory, Log
    • Field Detail

      • ACL_LOG_CLASS_NAME

        public static final java.lang.String ACL_LOG_CLASS_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • ACLLoggerFactory

        public ACLLoggerFactory()