Class LoggingEnvironmentRunListener
- java.lang.Object
-
- com.cumulocity.microservice.logging.configuration.LoggingEnvironmentRunListener
-
- All Implemented Interfaces:
org.springframework.boot.SpringApplicationRunListener
@Order(5) public class LoggingEnvironmentRunListener extends Object implements org.springframework.boot.SpringApplicationRunListener
-
-
Constructor Summary
Constructors Constructor Description LoggingEnvironmentRunListener(org.springframework.boot.SpringApplication application, String[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextLoaded(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext)
void
contextPrepared(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext)
void
environmentPrepared(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext, org.springframework.core.env.ConfigurableEnvironment environment)
void
environmentPrepared(org.springframework.core.env.ConfigurableEnvironment configurableEnvironment)
void
failed(org.springframework.context.ConfigurableApplicationContext context, Throwable exception)
void
finished(org.springframework.context.ConfigurableApplicationContext context, Throwable exception)
void
initLogging(ConfigurationFileProvider configurationFileProvider)
void
ready(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken)
void
running(org.springframework.context.ConfigurableApplicationContext context)
void
started()
void
started(org.springframework.context.ConfigurableApplicationContext context)
void
started(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken)
void
starting()
void
starting(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext)
-
-
-
Constructor Detail
-
LoggingEnvironmentRunListener
public LoggingEnvironmentRunListener(org.springframework.boot.SpringApplication application, String[] args)
-
-
Method Detail
-
starting
public void starting()
-
starting
public void starting(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext)
- Specified by:
starting
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
environmentPrepared
public void environmentPrepared(org.springframework.core.env.ConfigurableEnvironment configurableEnvironment)
-
environmentPrepared
public void environmentPrepared(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext, org.springframework.core.env.ConfigurableEnvironment environment)
- Specified by:
environmentPrepared
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
contextPrepared
public void contextPrepared(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext)
- Specified by:
contextPrepared
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
contextLoaded
public void contextLoaded(org.springframework.context.ConfigurableApplicationContext configurableApplicationContext)
- Specified by:
contextLoaded
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
started
public void started()
-
started
public void started(org.springframework.context.ConfigurableApplicationContext context)
- Specified by:
started
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
started
public void started(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken)
- Specified by:
started
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
running
public void running(org.springframework.context.ConfigurableApplicationContext context)
- Specified by:
running
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
ready
public void ready(org.springframework.context.ConfigurableApplicationContext context, Duration timeTaken)
- Specified by:
ready
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
failed
public void failed(org.springframework.context.ConfigurableApplicationContext context, Throwable exception)
- Specified by:
failed
in interfaceorg.springframework.boot.SpringApplicationRunListener
-
finished
public void finished(org.springframework.context.ConfigurableApplicationContext context, Throwable exception)
-
initLogging
public void initLogging(ConfigurationFileProvider configurationFileProvider)
-
-