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

    Constructors
    Constructor
    Description
    NacosLoggingAppRunListener(org.springframework.boot.SpringApplication application, String[] args)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contextPrepared(org.springframework.context.ConfigurableApplicationContext context)
     
    void
    environmentPrepared(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext, org.springframework.core.env.ConfigurableEnvironment environment)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      environmentPrepared in interface org.springframework.boot.SpringApplicationRunListener
    • contextPrepared

      public void contextPrepared(org.springframework.context.ConfigurableApplicationContext context)
      Specified by:
      contextPrepared in interface org.springframework.boot.SpringApplicationRunListener
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered