Amazon.Lambda.Logging.AspNetCore vs. AWS.Logger.AspNetCore #1305
Answered
by
ashishdhingra
schmallaria
asked this question in
Q&A
-
I have hosted an asp.net core 6 minimal API as docker container in an AWS lambda function using the hosting package. What is the correct logging package to log message from my API to AWS CloudWatch? |
Beta Was this translation helpful? Give feedback.
Answered by
ashishdhingra
Sep 13, 2022
Replies: 1 comment
-
@schmallaria Since you would be using logging in the Lambda environment, it is recommended to use Amazon.Lambda.Logging.AspNetCore. The guidance is mentioned at https://github.com/aws/aws-logging-dotnet#aws-logging-net where it is mentioned. Thanks, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ashishdhingra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@schmallaria Since you would be using logging in the Lambda environment, it is recommended to use Amazon.Lambda.Logging.AspNetCore. The guidance is mentioned at https://github.com/aws/aws-logging-dotnet#aws-logging-net where it is mentioned.
Thanks,
Ashish