Serilog.Sinks.AmazonS3
Serilog.Sinks.AmazonS3 copied to clipboard
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.
Serilog.Sinks.AmazonS3
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 :thumbsup:.
Available for
- Net 6.0
- Net 7.0
- Net 8.0
Net Core and Net Framework latest and LTS versions
- https://dotnet.microsoft.com/download/dotnet
Basic usage
Check out the how to use file here.
Install
dotnet add package Serilog.Sinks.AmazonS3
Special notice for read-only file systems (e.g. AWS Lambda)
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
Change history
See the Changelog.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!