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

      • 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 java.lang.String getName()
        Returns the name of the logger.
        Returns:
        the name of the logger
      • 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