Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Amazon.Lambda.Logging.AspNetCore - Always logs level as "trce" #1889

Answered by normj
bradyjp1974 asked this question in Q&A
Discussion options

Using AddLambdaLogger I've added the Amazon.Lambda.Logging.AspNetCore v3.1.1 provider to my Lamba logging capabilities.

One issue I am experiencing is that no matter what logging statement I use, the logs are always written with a level of 'trce' in CloudWatch.

If I enable the "IncludeLogLevel" LambdaLoggerOptions then the correct log level is included inside the log message.

These are my logging statements and the logging outcomes are show in the screenshot below.

 logger.LogInformation("ILogger LogInformation");
 logger.LogWarning("ILogger LogWarning");
 logger.LogError("ILogger LogError");
 logger.LogCritical("ILogger LogCritical");

sample

Can anyone confirm if I am doing something stupid here, or is this the expected behaviour?

Thank you!

You must be logged in to vote

Hi @bradyjp1974 this is an issue with our libraries and how they interact with ASP.NET Core logging. I'm working on a fix and hope to push out a PR soonish.

Replies: 1 comment 1 reply

Comment options

Hi @bradyjp1974 this is an issue with our libraries and how they interact with ASP.NET Core logging. I'm working on a fix and hope to push out a PR soonish.

You must be logged in to vote
1 reply
Comment options

Thank you for confirming, much appreciated.

Answer selected by bradyjp1974
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /