Serilog.Sinks.AmazonS3 is a library to save logging information from Serilog to Amazon S3. The idea there was to upload log files to Amazon S3 to later evaluate them with Amazon EMR services. This project makes use of the Serilog.Sinks.File's code in a major part, so thanks to all the contributors of this project 👍.
- NetStandard 2.0
- NetStandard 2.1
- Net 6.0
- Net 7.0
Check out the how to use file here.
dotnet add package Serilog.Sinks.AmazonS3
AWS Lambda exposes the tmp
folder for writing, so prepending /tmp/
to the path parameter of the AmazonS3 extension method allowed this sink to work with AWS Lambda.
Otherwise a similar exception is thrown:
Exception while emitting periodic batch from Serilog.Sinks.PeriodicBatching.PeriodicBatchingSink: System.IO.IOException: Read-only file system
See the Changelog.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!