Class LoggingRebinder
java.lang.Object
org.springframework.cloud.logging.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetEnvironment(org.springframework.core.env.Environment environment) protected voidsetLogLevels(org.springframework.boot.logging.LoggingSystem system, org.springframework.core.env.Environment environment) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
LoggingRebinder
public LoggingRebinder()
-
-
Method Details
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<EnvironmentChangeEvent>
-
setLogLevels
protected void setLogLevels(org.springframework.boot.logging.LoggingSystem system, org.springframework.core.env.Environment environment)
-