Package com.alibaba.cloud.nacos.logging
Class NacosLoggingAppRunListener
java.lang.Object
com.alibaba.cloud.nacos.logging.NacosLoggingAppRunListener
- All Implemented Interfaces:
org.springframework.boot.SpringApplicationRunListener,org.springframework.core.Ordered
public class NacosLoggingAppRunListener
extends Object
implements org.springframework.boot.SpringApplicationRunListener, org.springframework.core.Ordered
Reload nacos log configuration on spring application contextPrepared.
- Author:
- RuanSheng
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionNacosLoggingAppRunListener(org.springframework.boot.SpringApplication application, String[] args) -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextPrepared(org.springframework.context.ConfigurableApplicationContext context) voidenvironmentPrepared(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext, org.springframework.core.env.ConfigurableEnvironment environment) intgetOrder()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.SpringApplicationRunListener
contextLoaded, failed, ready, started, starting
-
Constructor Details
-
NacosLoggingAppRunListener
public NacosLoggingAppRunListener(org.springframework.boot.SpringApplication application, String[] args)
-
-
Method Details
-
environmentPrepared
public void environmentPrepared(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext, org.springframework.core.env.ConfigurableEnvironment environment) - Specified by:
environmentPreparedin interfaceorg.springframework.boot.SpringApplicationRunListener
-
contextPrepared
public void contextPrepared(org.springframework.context.ConfigurableApplicationContext context) - Specified by:
contextPreparedin interfaceorg.springframework.boot.SpringApplicationRunListener
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-