logback-awslogs-appender icon indicating copy to clipboard operation
logback-awslogs-appender copied to clipboard

Fetching config from system variables

Open mahimatiwary025 opened this issue 3 years ago • 1 comments

I want to fetch the values for AWS credentials from my system variables which currently I am not able to achieve. Something like this:

<logRegion>${AWS_DEFAULT_REGION}</logRegion>

where AWS_DEFAULT_REGION is a system variable. Ultimately, while deploying, this value, along with AWS access and secret key is to be fetched from bitbucket secrets. But currently, for local testing, I have these as system variables.

Is it possible with this library?

mahimatiwary025 avatar Feb 28 '22 08:02 mahimatiwary025

Your example already works since logback supports system env variable injection

dnovitski avatar May 05 '23 14:05 dnovitski