![]() |
VOOZH | about |
dotnet add package Franz.Common.Logging --version 2.2.7
NuGet\Install-Package Franz.Common.Logging -Version 2.2.7
<PackageReference Include="Franz.Common.Logging" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Logging" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Logging" />Project file
paket add Franz.Common.Logging --version 2.2.7
#r "nuget: Franz.Common.Logging, 2.2.7"
#:package Franz.Common.Logging@2.2.7
#addin nuget:?package=Franz.Common.Logging&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Logging&version=2.2.7Install as a Cake Tool
A comprehensive logging library within the Franz Framework, designed to enhance application monitoring and diagnostics using Serilog and Elastic APM. This package provides tools for centralized logging, tracing, and seamless integration with ASP.NET Core applications.
Dual Production Logging
Self-contained, production-ready defaults
Integration-ready for Franz.Common.OpenTelemetry
Fail-safe and maintainable
Centralized Logging
Tracing Utilities
TraceHelper for advanced tracing support in distributed applications.Host Extensions
UseLog() for strict, environment-aware logging.UseHybridLog() for flexible, configuration-driven logging.Elastic APM Integration
Dual Production Logging (v1.7.6)
dotnet nuget add source "https://your-private-feed-url" \
--name "AzurePrivateFeed" \
--username "YourAzureUsername" \
--password "YourAzurePassword" \
--store-password-in-clear-text
Install the package:
dotnet add package Franz.Common.Logging --version 1.7.6
UseLog)using Franz.Common.Logging.Extensions;
var host = Host.CreateDefaultBuilder(args)
.UseLog() // Dev → Console + Debug + File
// Prod → Console + Dev log + SRE log
.Build();
await host.RunAsync();
Development:
logs/dev-.log)Production:
logs/prod-sre-.json, structured, minimal noise, 30-day retentionlogs/prod-dev-.log, verbose, stack traces, 30-day retentionUseHybridLog)using Franz.Common.Logging.Extensions;
var host = Host.CreateDefaultBuilder(args)
.UseHybridLog() // Configuration-driven logging from appsettings.json
.Build();
await host.RunAsync();
In appsettings.json:
{
"Serilog": {
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
"MinimumLevel": "Debug",
"WriteTo": [
{ "Name": "Console" },
{
"Name": "File",
"Args": { "path": "logs/app-.log", "rollingInterval": "Day" }
}
]
}
}
using Franz.Common.Logging.Tracing;
TraceHelper.TraceInformation("Starting application initialization...");
TraceHelper.TraceWarning("Potential configuration issue detected.");
#if DEBUG
Agent.Setup(new AgentComponents());
#endif
Production: opt-in via appsettings.json:
{
"ElasticApm": {
"ServerUrls": "http://localhost:8200",
"ServiceName": "MyApplication"
}
}
prod-sre-.json for SRE, prod-dev-.log for DevUseLog() and UseHybridLog()(Older versions omitted for brevity)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Franz.Common.Logging:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.Hosting
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Bootstrap
Shared utility library for the Franz Framework. |
|
|
Franz.Common.SSO
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Messaging.AzureEventHubs
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Messaging.AzureEventBus
Shared utility library for the Franz Framework. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 265 | 6/7/2026 |
| 2.2.6 | 264 | 6/6/2026 |
| 2.2.5 | 272 | 6/4/2026 |
| 2.2.4 | 266 | 6/3/2026 |
| 2.2.3 | 262 | 6/2/2026 |
| 2.2.2 | 267 | 6/2/2026 |
| 2.2.1 | 265 | 5/24/2026 |
| 2.1.4 | 235 | 4/27/2026 |
| 2.1.3 | 220 | 4/26/2026 |
| 2.1.2 | 220 | 4/26/2026 |
| 2.1.1 | 236 | 4/22/2026 |
| 2.0.2 | 237 | 3/30/2026 |
| 2.0.1 | 232 | 3/29/2026 |
| 1.7.8 | 240 | 3/2/2026 |
| 1.7.7 | 253 | 1/31/2026 |
| 1.7.6 | 258 | 1/22/2026 |
| 1.7.5 | 247 | 1/10/2026 |
| 1.7.4 | 252 | 12/27/2025 |
| 1.7.3 | 325 | 12/22/2025 |
| 1.7.2 | 340 | 12/21/2025 |