Interface LoggerProvider


public interface LoggerProvider
Provides an abstraction for obtaining Logger instances. This interface centralizes the creation and retrieval of loggers by name, allowing different implementations to support various logging frameworks or custom logging behavior.

Implementations of this interface should ensure thread-safety and provide a consistent logger instance for a given name.

Since:
2.5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    getLogger(String className)
    Retrieves a Logger instance associated with the specified class name.
  • Method Details

    • getLogger

      Logger getLogger(String className)
      Retrieves a Logger instance associated with the specified class name. The returned logger can be used for logging messages at different levels.
      Parameters:
      className - the name of the logger to retrieve
      Returns:
      the Logger instance associated with the specified class name
      Since:
      2.5.0