How to configure Serilog to log request IDs for S3? #218
Answered
by
ashishdhingra
websparks-wy
asked this question in
Q&A
-
https://docs.aws.amazon.com/AmazonS3/latest/userguide/get-request-ids.html Hi,
|
Beta Was this translation helpful? Give feedback.
Answered by
ashishdhingra
Jun 19, 2023
Replies: 2 comments
-
@websparks-wy For console application, you could enable verbose logs via below code: Amazon.AWSConfigs.LoggingConfig.LogResponses = Amazon.ResponseLoggingOption.Always;
Amazon.AWSConfigs.LoggingConfig.LogTo = Amazon.LoggingOptions.SystemDiagnostics;
Amazon.AWSConfigs.AddTraceListener("Amazon", new System.Diagnostics.ConsoleTraceListener()); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ashishdhingra
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@websparks-wy For console application, you could enable verbose logs via below code: