public class ExtendedLoggingPropertiesListener
extends org.springframework.boot.logging.LoggingApplicationListener
| Constructor and Description |
|---|
ExtendedLoggingPropertiesListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLoggingProperties(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event) |
int |
getOrder()
ideally this would be run before org.springframework.boot.logging.LoggingApplicationListener (+11)
but after org.springframework.boot.context.config.ConfigFileApplicationListener (+10)
so we could simply insert the properties in between those steps, but unfortunately there is
no guaranteed way to do that, so we run afterwards and re-initialize the entire thing via super class.
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>onApplicationEvent in class org.springframework.boot.logging.LoggingApplicationListenerpublic void addLoggingProperties(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event)
public int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class org.springframework.boot.logging.LoggingApplicationListener