Class LoggingRebinder

  • All Implemented Interfaces:
    EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationListener<EnvironmentChangeEvent>, org.springframework.context.EnvironmentAware

    public class LoggingRebinder
    extends Object
    implements org.springframework.context.ApplicationListener<EnvironmentChangeEvent>, org.springframework.context.EnvironmentAware
    Listener that looks for EnvironmentChangeEvent and rebinds logger levels if any changed.
    Author:
    Dave Syer, Olga Maciaszek-Sharma
    • Constructor Detail

      • LoggingRebinder

        public LoggingRebinder()
    • Method Detail

      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        Specified by:
        setEnvironment in interface org.springframework.context.EnvironmentAware
      • setLogLevels

        protected void setLogLevels​(org.springframework.boot.logging.LoggingSystem system,
                                    org.springframework.core.env.Environment environment)