AMMS.Logging
1.0.140-dev
See the version list below for details.
dotnet add package AMMS.Logging --version 1.0.140-dev
NuGet\Install-Package AMMS.Logging -Version 1.0.140-dev
<PackageReference Include="AMMS.Logging" Version="1.0.140-dev" />
<PackageVersion Include="AMMS.Logging" Version="1.0.140-dev" />
<PackageReference Include="AMMS.Logging" />
paket add AMMS.Logging --version 1.0.140-dev
#r "nuget: AMMS.Logging, 1.0.140-dev"
#:package AMMS.Logging@1.0.140-dev
#addin nuget:?package=AMMS.Logging&version=1.0.140-dev&prerelease
#tool nuget:?package=AMMS.Logging&version=1.0.140-dev&prerelease
AMMS.Logging
Runtime logging configuration shared across AMMS applications.
Usage
Add project/package reference, then replace the app's Serilog bootstrap with:
using AMMS.Logging;
using Serilog;
var ammsLogging = AmmsLoggingBootstrapper.Create(builder.Configuration);
Log.Logger = ammsLogging.Logger;
builder.Services.AddAmmsLogging(ammsLogging.Registry);
builder.Host.UseSerilog();
Configuration
{
"AmmsLogging": {
"DefaultLevel": "Information",
"RawDeviceLevel": "Information",
"RawDeviceSourceOverrides": [
"AMMS.VHB.Count.SDK",
"AMMS.Chafon.SDK",
"AMMS.ZkAutoPush",
"AMMS.ZKTeco",
"AMMS.Printer"
],
"RequestLogging": {
"SuppressedPathPrefixes": [
"/health"
]
}
}
}
Set RawDeviceLevel to Debug only when raw device traffic needs to be inspected.
To apply shared Serilog request logging defaults:
app.UseSerilogRequestLogging(options => options.UseAmmsRequestLoggingDefaults(builder.Configuration));
SuppressedPathPrefixes suppresses the generic HTTP ... responded ... request log for paths that already have a dedicated logger. Suppressed requests are emitted at Verbose, so they stay hidden unless the application explicitly enables verbose logging.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net6.0
- Serilog.AspNetCore (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.183-dev | 32 | 7/4/2026 |
| 1.0.142-rc | 97 | 5/18/2026 |
| 1.0.141-sit | 93 | 5/18/2026 |
| 1.0.140-dev | 89 | 5/18/2026 |
| 1.0.139-dev | 93 | 5/18/2026 |
| 1.0.13 | 108 | 5/18/2026 |