post Process Environment
open fun postProcessEnvironment(environment: ConfigurableEnvironment, application: SpringApplication)
Post-processes the environment to configure library logging if not already configured by the user.
Processing steps:
- Check if user has set
logging.configproperty - if yes, skip - Check if user has
logback-spring.xmlin classpath - if yes, skip - Read
embabel.agent.platform.logging.configfromagent-platform.properties - Set
logging.configsystem property
Note: This processor reads agent-platform.properties as a simple resource file without loading it into the Spring Environment. The AgentPlatformPropertiesLoader (in embabel-agent-api) is responsible for loading properties into the Environment for @ConfigurationProperties binding.
Parameters
environment
the Spring environment
application
the Spring application