-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Open
Labels
type: enhancementA general enhancementA general enhancement
Milestone
Description
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
Labels
type: enhancementA general enhancementA general enhancement