Class LoggerFactory

java.lang.Object
com.university.bookstore.utils.LoggerFactory

public final class LoggerFactory extends Object
Factory for creating SLF4J loggers with consistent configuration. This utility class provides a centralized way to create loggers throughout the application.
Since:
2025-09-07
Version:
1.0
Author:
Security Team
  • Method Details

    • getLogger

      public static org.slf4j.Logger getLogger(Class<?> clazz)
      Creates a logger for the specified class.
      Parameters:
      clazz - the class for which to create a logger
      Returns:
      the configured logger
    • getLogger

      public static org.slf4j.Logger getLogger(String name)
      Creates a logger with the specified name.
      Parameters:
      name - the name for the logger
      Returns:
      the configured logger