public class LoggingRebinder extends Object implements org.springframework.context.ApplicationListener<EnvironmentChangeEvent>, org.springframework.context.EnvironmentAware
EnvironmentChangeEvent
and rebinds logger levels if any
changed.Constructor and Description |
---|
LoggingRebinder() |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(EnvironmentChangeEvent event) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
protected void |
setLogLevels(org.springframework.boot.logging.LoggingSystem system,
org.springframework.core.env.Environment environment) |
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface org.springframework.context.EnvironmentAware
public void onApplicationEvent(EnvironmentChangeEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<EnvironmentChangeEvent>
protected void setLogLevels(org.springframework.boot.logging.LoggingSystem system, org.springframework.core.env.Environment environment)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.