Class LoggerConfiguration

java.lang.Object
org.springframework.boot.logging.LoggerConfiguration

public final class LoggerConfiguration extends Object
Immutable class that represents the configuration of a LoggingSystem's logger.
Since:
1.5.0
  • Constructor Details

    • LoggerConfiguration

      public LoggerConfiguration(String name, LogLevel configuredLevel, LogLevel effectiveLevel)
      Create a new instance.
      Parameters:
      name - the name of the logger
      configuredLevel - the configured level of the logger
      effectiveLevel - the effective level of the logger
  • Method Details

    • getConfiguredLevel

      public LogLevel getConfiguredLevel()
      Returns the configured level of the logger.
      Returns:
      the configured level of the logger
    • getEffectiveLevel

      public LogLevel getEffectiveLevel()
      Returns the effective level of the logger.
      Returns:
      the effective level of the logger
    • getName

      public String getName()
      Returns the name of the logger.
      Returns:
      the name of the logger
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object