org.springframework.boot.logging

Class LoggerConfiguration

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


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

      • LoggerConfiguration

        public LoggerConfiguration(java.lang.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 Detail

      • getName

        public java.lang.String getName()
        Returns the name of the logger.
        Returns:
        the name of the logger
      • getLevelConfiguration

        public LoggerConfiguration.LevelConfiguration getLevelConfiguration()
        Return the level configuration, considering inherited loggers.
        Returns:
        the level configuration
        Since:
        2.7.13
      • equals

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object