serilog-contrib / 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.
MIT License
21 stars 21 forks source link
amazon amazon-s3 csharp log logging s3-storage serilog

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:.

GitHub issues GitHub forks GitHub stars License: MIT Nuget NuGet Downloads Known Vulnerabilities Gitter

All Contributors

Available for

Net Core and Net Framework latest and LTS versions

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):


Galouw

πŸ’» πŸ“–

Ben Grabkowitz

πŸ’» πŸ“–

Adam Herrmann

πŸ’» πŸ“–

qrczak0

πŸ’» πŸ“–

Swen Mun

πŸ’» πŸ“–

Barry Mooring

πŸ’» πŸ“–

Sam Burville

πŸ’» πŸ“–

Matt Styles

πŸ’» πŸ“–

Valentin LECERF

πŸ’» πŸ“–

HansM

πŸ’» πŸ“– πŸ’‘ 🚧 πŸ“† ⚠️

Serilog Contrib

πŸ’» πŸ“– πŸ’‘ 🚧 πŸ“† ⚠️

Yuriy Sountsov

πŸ“–

Sergey Kosov

πŸ’» ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!