Skip to content

Allow addition of custom logback Actions  #24992

@a1dutch

Description

@a1dutch

Hi,

I was looking at adding a custom Action via the SpringBootJoranConfigurator but this is not currently possible.

My use case is to enable or disable an appender based on a property via the spring Environment class.

I managed to add a custom action based on the newRule extension, but its not possible to get access to the Environment class.

A way to either configure the SpringBootJoranConfigurator with the LoggingInitializationContext or a new way to enable/disable based on a property would be handy, e.g. like a <conditionalOnProperty property="my.property.enabled" havingValue="true" matchOnMissing=true />

Cheers

Andy

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions