aws-sdk-kotlin icon indicating copy to clipboard operation
aws-sdk-kotlin copied to clipboard

Allow configuration of SDK log mode by environment

Open ianbotsf opened this issue 3 years ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

Describe the Feature

Currently, the sdkLogMode config can be controlled at the service client level (and potentially soon at the shared config level via #431). This requires manual code changes, however, and may not be the most convenient in every scenario. Much like other client-level configuration, this should be manageable via environmental settings (e.g., JVM system properties or environment variables).

Is your Feature Request related to a problem?

The problem here is that changing logging levels requires a Kotlin code change, recompilation, and redeployment of build artifacts into Lambda, Elastic Beanstalk, etc. If this setting were manageable by environmental settings, a change would be much simpler and quicker.

Proposed Solution

I propose adding JVM system property and environment variable keys for detecting desired logging modes without explicit configuration in code. A stretch goal is parsing them from config profiles.

Describe alternatives you've considered

None at this time.

Additional Context

See Is your Feature Request related to a problem? above.

  • [x] I may be able to implement this feature request

ianbotsf avatar Nov 17 '21 23:11 ianbotsf