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 forEnvironmentChangeEventand rebinds logger levels if any changed.- Author:
- Dave Syer, Olga Maciaszek-Sharma
-
-
Constructor Summary
Constructors Constructor Description LoggingRebinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonApplicationEvent(EnvironmentChangeEvent event)voidsetEnvironment(org.springframework.core.env.Environment environment)protected voidsetLogLevels(org.springframework.boot.logging.LoggingSystem system, org.springframework.core.env.Environment environment)
-
-
-
Method Detail
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
onApplicationEvent
public void onApplicationEvent(EnvironmentChangeEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<EnvironmentChangeEvent>
-
setLogLevels
protected void setLogLevels(org.springframework.boot.logging.LoggingSystem system, org.springframework.core.env.Environment environment)
-
-