aws / aws-lambda-dotnet

Libraries, samples and tools to help .NET Core developers develop AWS Lambda functions.
Apache License 2.0
1.58k stars 477 forks source link

Fix issue with not correctly detecting "warning" log level. #1800

Closed normj closed 2 months ago

normj commented 3 months ago

Description of changes: When the log level is set to warning it sets the logging environment variable to warn instead of warning which is what the .NET Lambda runtime was using. This PR adds the special case for warn to translate to .NET's warning and reworks the integration tests to test the log level through both the legacy .NET environment variable and the Lambda logging configuration properties.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.