Serilog.Sinks.AmazonS3 1.5.2
dotnet add package Serilog.Sinks.AmazonS3 --version 1.5.2
NuGet\Install-Package Serilog.Sinks.AmazonS3 -Version 1.5.2
<PackageReference Include="Serilog.Sinks.AmazonS3" Version="1.5.2" />
paket add Serilog.Sinks.AmazonS3 --version 1.5.2
#r "nuget: Serilog.Sinks.AmazonS3, 1.5.2"
// Install Serilog.Sinks.AmazonS3 as a Cake Addin #addin nuget:?package=Serilog.Sinks.AmazonS3&version=1.5.2 // Install Serilog.Sinks.AmazonS3 as a Cake Tool #tool nuget:?package=Serilog.Sinks.AmazonS3&version=1.5.2
Serilog.Sinks.AmazonS3
Serilog.Sinks.AmazonS3 是一个库,用于将 Serilog 中的日志信息保存到 Amazon S3。其理念是将日志文件上传到 Amazon S3,以便稍后使用 Amazon EMR 服务进行评估。该项目大量使用了 Serilog.Sinks.File 的代码,所以感谢所有 此项目的贡献者 👍。
可用于
- Net 6.0
- Net 8.0
Net Core 和 Net Framework 最新和 LTS 版本
基本用法
查看如何使用文件 这里。
安装
dotnet add package Serilog.Sinks.AmazonS3
仅读文件系统的特别注意(例如 AWS Lambda)
AWS Lambda 提供了 tmp
文件夹用于写入,因此将 /tmp/
前缀添加到 AmazonS3 扩展方法的路径参数,允许此通道与 AWS Lambda 一起使用。否则会抛出类似异常
Exception while emitting periodic batch from Serilog.Sinks.PeriodicBatching.PeriodicBatchingSink: System.IO.IOException: Read-only file system
更改历史
请参阅变更日志。
贡献者 ✨
感谢这些优秀的人们(表情符号键)
<table> <tr> <td align="center"><a href="https://github.com/Galouw"><img src="https://avatars.githubusercontent.com/u/6368030?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Galouw</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=Galouw" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=Galouw" title="Documentation">📖</a></td> <td align="center"><a href="https://github.com/profet23"><img src="https://avatars.githubusercontent.com/u/2411974?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ben Grabkowitz</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=profet23" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=profet23" title="Documentation">📖</a></td> <td align="center"><a href="https://github.com/aherrmann13"><img src="https://avatars.githubusercontent.com/u/1924089?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Adam Herrmann</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=aherrmann13" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=aherrmann13" title="Documentation">📖</a></td> <td align="center"><a href="https://github.com/qrczak0"><img src="https://avatars.githubusercontent.com/u/45206900?v=4?s=100" width="100px;" alt=""/><br /><sub><b>qrczak0</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=qrczak0" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=qrczak0" title="Documentation">📖</a></td> <td align="center"><a href="http://longfin.github.com"><img src="https://avatars.githubusercontent.com/u/128436?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Swen Mun</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=longfin" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=longfin" title="Documentation">📖</a></td> <td align="center"><a href="https://www.linkedin.com/in/barrymooring/"><img src="https://avatars.githubusercontent.com/u/1089628?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Barry Mooring</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=codingbadger" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=codingbadger" title="Documentation">📖</a></td> <td align="center"><a href="https://github.com/samburville"><img src="https://avatars.githubusercontent.com/u/7041731?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam Burville</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=samburville" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=samburville" title="Documentation">📖</a></td> </tr> <tr> <td align="center"><a href="https://github.com/stylesm"><img src="https://avatars.githubusercontent.com/u/5602910?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Matt Styles</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=stylesm" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=stylesm" title="Documentation">📖</a></td> <td align="center"><a href="http://vlecerf.com"><img src="https://avatars.githubusercontent.com/u/7376668?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Valentin LECERF</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=ioxFR" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=ioxFR" title="Documentation">📖</a></td> <td align="center"><a href="https://franzhuber23.blogspot.de/"><img src="https://avatars.githubusercontent.com/u/9639361?v=4?s=100" width="100px;" alt=""/><br /><sub><b>HansM</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=SeppPenner" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=SeppPenner" title="Documentation">📖</a> <a href="#example-SeppPenner" title="Examples">💡</a> <a href="#maintenance-SeppPenner" title="Maintenance">🚧</a> <a href="#projectManagement-SeppPenner" title="Project Management">📆</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=SeppPenner" title="Tests">⚠️</a></td> <td align="center"><a href="https://github.com/serilog-contrib"><img src="https://avatars.githubusercontent.com/u/78050538?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Serilog Contrib</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=serilog-contrib" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=serilog-contrib" title="Documentation">📖</a> <a href="#example-serilog-contrib" title="Examples">💡</a> <a href="#maintenance-serilog-contrib" title="Maintenance">🚧</a> <a href="#projectManagement-serilog-contrib" title="Project Management">📆</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=serilog-contrib" title="Tests">⚠️</a></td> <td align="center"><a href="https://github.com/seruminar"><img src="https://avatars.githubusercontent.com/u/35008875?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yuriy Sountsov</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=seruminar" title="Documentation">📖</a></td> <td align="center"><a href="https://github.com/kosovrzn"><img src="https://avatars.githubusercontent.com/u/13337834?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sergey Kosov</b></sub></a><br /><a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=kosovrzn" title="Code">💻</a> <a href="https://github.com/serilog-contrib/Serilog.Sinks.AmazonS3/commits?author=kosovrzn" title="Tests">⚠️</a></td> </tr> </table>
此项目遵循所有贡献者规范。欢迎任何形式的贡献!
产品 | 版本 兼容及额外的计算目标框架版本。 |
---|---|
.NET | net6.0 兼容。 net6.0-android 已计算。 net6.0-ios 已计算。 net6.0-maccatalyst 已计算。 net6.0-macos 已计算。 net6.0-tvos 已计算。 net6.0-windows 已计算。 net7.0 已计算。 net7.0-android 已计算。 net7.0-ios 已计算。 net7.0-maccatalyst 已计算。 net7.0-macos 已计算。 net7.0-tvos 已计算。 net7.0-windows 已计算。 net8.0 兼容。 net8.0-android 已计算。 net8.0-browser 已计算。 net8.0-ios 已计算。 net8.0-maccatalyst 已计算。 net8.0-macos 已计算。 net8.0-tvos 已计算。 net8.0-windows 已计算。 |
-
net6.0
- AWSSDK.S3 (>= 3.7.305.30)
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 3.1.1)
- Serilog.Sinks.PeriodicBatching >= 4.0.0)
-
net8.0
- AWSSDK.S3 (>= 3.7.305.30)
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 3.1.1)
- Serilog.Sinks.PeriodicBatching >= 4.0.0)
NuGet 包
此包未被任何 NuGet 包使用。
GitHub 仓库
此包未被任何流行的 GitHub 仓库使用。
版本 | 下载 | 最后更新 |
---|---|---|
1.5.2 | 8,322 | 5/16/2024 |
1.5.1 | 20,100 | 3/3/2024 |
1.5.0 | 5,894 | 11/21/2023 |
1.4.1 | 24,510 | 6/6/2023 |
1.4.0 | 14,483 | 4/7/2023 |
1.3.0 | 8,594 | 11/20/2022 |
1.2.9 | 14,412 | 10/30/2022 |
1.2.8 | 13,971 | 8/28/2022 |
1.2.7 | 43,573 | 8/3/2022 |
1.2.6 | 5,111 | 6/1/2022 |
1.2.5 | 13,302 | 2/16/2022 |
1.2.4 | 878 | 2/16/2022 |
1.2.3 | 4,968 | 1/12/2022 |
1.2.2 | 9,673 | 11/9/2021 |
1.2.1 | 926 | 11/4/2021 |
1.2.0 | 12,951 | 9/12/2021 |
1.1.11 | 4,952 | 9/3/2021 |
版本 1.5.2.0 (2024-05-16): 移除了对 Net7.0 的支持。