AgentLoggingEnvironmentPostProcessor

Environment post-processor that automatically configures logging for Embabel Agent library.

This processor loads the library's default logging configuration (logback-embabel.xml) unless the user has provided their own logging configuration via:

  • logging.config property
  • logback-spring.xml file in their application

The processor reads embabel.agent.platform.logging.config directly from the agent-platform.properties file and adds it to the Spring Environment as logging.config for Spring Boot's logging system to use during initialization.

Separation of Concerns: This processor only reads the properties file to obtain the logging configuration path. It does NOT load properties into the Spring Environment. The AgentPlatformPropertiesLoader (in embabel-agent-api) is responsible for loading agent-platform.properties into the Environment for @ConfigurationProperties binding.

See also

EnvironmentPostProcessor

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getOrder(): Int
Returns the order for this post-processor.
Link copied to clipboard
open fun postProcessEnvironment(environment: ConfigurableEnvironment, application: SpringApplication)
Post-processes the environment to configure library logging if not already configured by the user.