postProcessEnvironment

open fun postProcessEnvironment(environment: ConfigurableEnvironment, application: SpringApplication)

Post-processes the environment to configure library logging if not already configured by the user.

Processing steps:

  1. Check if user has set logging.config property - if yes, skip
  2. Check if user has logback-spring.xml in classpath - if yes, skip
  3. Read embabel.agent.platform.logging.config from agent-platform.properties
  4. Set logging.config system 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