Class NoOpLoggerFactory

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

    public class NoOpLoggerFactory
    extends LoggerFactory
    A LoggerFactory implementation that provides instances of NoOpLogger, which perform no operations for logging calls. This factory is always available and has the lowest possible priority to ensure it is used only when no other logger implementations are available.

    Example Usage

    
     // Get a NoOpLogger instance by class
     Logger logger = NoOpLoggerFactory.getLogger(MyClass.class);
    
     // Get a NoOpLogger instance by name
     Logger logger = NoOpLoggerFactory.getLogger("my.logger.name");
     
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    NoOpLogger, LoggerFactory