metalTools.LoggerLite.Hosting
26.10.11.1
dotnet add package metalTools.LoggerLite.Hosting --version 26.10.11.1
NuGet\Install-Package metalTools.LoggerLite.Hosting -Version 26.10.11.1
<PackageReference Include="metalTools.LoggerLite.Hosting" Version="26.10.11.1" />
<PackageVersion Include="metalTools.LoggerLite.Hosting" Version="26.10.11.1" />
<PackageReference Include="metalTools.LoggerLite.Hosting" />
paket add metalTools.LoggerLite.Hosting --version 26.10.11.1
#r "nuget: metalTools.LoggerLite.Hosting, 26.10.11.1"
#:package metalTools.LoggerLite.Hosting@26.10.11.1
#addin nuget:?package=metalTools.LoggerLite.Hosting&version=26.10.11.1
#tool nuget:?package=metalTools.LoggerLite.Hosting&version=26.10.11.1
metalTools.LoggerLite.Hosting
Optional .NET 10 Generic Host integration. Install this package and call builder.Logging.AddLoggerLite(...). The host owns one buffered logger, also available as ILoggerLite and ILogActivityFeed through dependency injection. Host disposal flushes pending archives; both synchronous and asynchronous disposal are supported.
Standard ILogger<T> filtering remains controlled by Logging:LogLevel and provider-specific Logging:LoggerLite:LogLevel settings. Categories are retained in the category field; severity, event ID, scopes, and full exception details are recorded as message text. Structured template arguments are rendered by the standard formatter, not stored as separately queryable JSON properties. Archives retain the existing LoggerLite schema.
LoggerLiteOptions can be bound with builder.Services.AddOptions<LoggerLiteOptions>().Bind(builder.Configuration.GetSection("LoggerLite")). Options are startup settings, not hot-reloaded. Relative archive paths resolve against the host content root. Set an absolute writable directory for deployed services. The default uses the service account's local application data folder.
Registration does not clear other logging providers or initialize/replace LogManager or Log.It. Existing static callers remain compatible with the core package; migrate hosted callers to injected ILogger<T> or ILoggerLite to share the host-owned buffer. Do not initialize another file logger for the same archive destination.
The provider itself does not own its supplied ILoggerLite destination. The built-in host runtime owns and drains its buffer at host disposal, after shutdown logging. Logging remains bounded and best effort; dropped entries and sink failures retain the core logger's behavior.
| 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
- metalTools.LoggerLite (>= 26.10.11.1)
- Microsoft.Extensions.Hosting (>= 10.0.0)
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 |
|---|---|---|
| 26.10.11.1 | 129 | 10/11/2026 |
| 26.10.10.1232 | 102 | 10/10/2026 |