ThisCloud.Framework.Loggings.Serilog
1.0.94
dotnet add package ThisCloud.Framework.Loggings.Serilog --version 1.0.94
NuGet\Install-Package ThisCloud.Framework.Loggings.Serilog -Version 1.0.94
<PackageReference Include="ThisCloud.Framework.Loggings.Serilog" Version="1.0.94" />
<PackageVersion Include="ThisCloud.Framework.Loggings.Serilog" Version="1.0.94" />
<PackageReference Include="ThisCloud.Framework.Loggings.Serilog" />
paket add ThisCloud.Framework.Loggings.Serilog --version 1.0.94
#r "nuget: ThisCloud.Framework.Loggings.Serilog, 1.0.94"
#:package ThisCloud.Framework.Loggings.Serilog@1.0.94
#addin nuget:?package=ThisCloud.Framework.Loggings.Serilog&version=1.0.94
#tool nuget:?package=ThisCloud.Framework.Loggings.Serilog&version=1.0.94
ThisCloud.Framework.Loggings.Serilog
Español | English
Español
Implementación Serilog con sinks (Console + File rolling 10MB), enrichment, redaction, runtime control, fail-fast Production.
Instalación
dotnet add package ThisCloud.Framework.Loggings.Serilog
Inicio Rápido
using ThisCloud.Framework.Loggings.Serilog;
var builder = WebApplication.CreateBuilder(args);
builder.Host.UseThisCloudFrameworkSerilog(builder.Configuration, "mi-api");
builder.Services.AddThisCloudFrameworkLoggings(builder.Configuration, "mi-api");
var app = builder.Build();
app.Run();
appsettings.json
{
"ThisCloud": {
"Loggings": {
"MinimumLevel": "Information",
"Console": { "Enabled": true },
"File": {
"Enabled": true,
"Path": "logs/log-.ndjson",
"RollingFileSizeMb": 10
},
"Redaction": { "Enabled": true }
}
}
}
⚠️ Production
{
"ThisCloud": {
"Loggings": {
"MinimumLevel": "Warning",
"Console": { "Enabled": false },
"File": { "Path": "/var/log/myapp/log-.ndjson" }
}
}
}
Seguridad
- ❌ NO loguear secretos:
Authorization, JWT, passwords, API keys - ❌ NO body logging (prohibido por defecto)
- ✅ Redaction.Enabled=true obligatorio en Production
- ✅ Fail-fast: Config inválida detiene arranque
Documentación Completa
Licencia
ISC License - Sin garantías, sin responsabilidad por pérdidas de datos/brechas de seguridad.
Ver LICENSE completo.
English
Serilog implementation with sinks (Console + File rolling 10MB), enrichment, redaction, runtime control, fail-fast Production.
Install
dotnet add package ThisCloud.Framework.Loggings.Serilog
Quick Start
using ThisCloud.Framework.Loggings.Serilog;
var builder = WebApplication.CreateBuilder(args);
builder.Host.UseThisCloudFrameworkSerilog(builder.Configuration, "my-api");
builder.Services.AddThisCloudFrameworkLoggings(builder.Configuration, "my-api");
var app = builder.Build();
app.Run();
appsettings.json
{
"ThisCloud": {
"Loggings": {
"MinimumLevel": "Information",
"Console": { "Enabled": true },
"File": {
"Enabled": true,
"Path": "logs/log-.ndjson",
"RollingFileSizeMb": 10
},
"Redaction": { "Enabled": true }
}
}
}
⚠️ Production
{
"ThisCloud": {
"Loggings": {
"MinimumLevel": "Warning",
"Console": { "Enabled": false },
"File": { "Path": "/var/log/myapp/log-.ndjson" }
}
}
}
Security
- ❌ NO logging secrets:
Authorization, JWT, passwords, API keys - ❌ NO body logging (prohibited by default)
- ✅ Redaction.Enabled=true mandatory in Production
- ✅ Fail-fast: Invalid config stops startup
Full Documentation
License
ISC License - No warranties, no liability for data loss/security breaches.
See full LICENSE.
Copyright © 2025 Marco Alejandro De Santis
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Serilog (>= 4.3.1)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Enrichers.Process (>= 3.0.0)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Extensions.Hosting (>= 10.0.0)
- Serilog.Formatting.Compact (>= 3.0.0)
- Serilog.Settings.Configuration (>= 10.0.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.File (>= 7.0.0)
- ThisCloud.Framework.Loggings.Abstractions (>= 1.0.94)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.