MintPlayer.Spark.Logging
11.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MintPlayer.Spark.Logging --version 11.0.0
NuGet\Install-Package MintPlayer.Spark.Logging -Version 11.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MintPlayer.Spark.Logging" Version="11.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MintPlayer.Spark.Logging" Version="11.0.0" />
<PackageReference Include="MintPlayer.Spark.Logging" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MintPlayer.Spark.Logging --version 11.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MintPlayer.Spark.Logging, 11.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MintPlayer.Spark.Logging@11.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MintPlayer.Spark.Logging&version=11.0.0
#tool nuget:?package=MintPlayer.Spark.Logging&version=11.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MintPlayer.Spark.Logging
Stored logs for MintPlayer.Spark. What your code logs through any ILogger while a log scope is open is also kept in
one Log document per scope, written in one save when the scope closes. It works on any Spark store.
builder.Services.AddSpark(builder.Configuration, spark => spark.AddLogs());
await using (var scope = logScopes.CreateScope("commands/github/123/456", relatedPersistentObjectId: commandId))
{
scope.Logger.LogInformation("Merging #{Number}", number); // console, Seq, … and the Log document
try { … } catch (Exception ex) { scope.Logger.LogError(ex, "Merge failed"); }
}
scope.Loggeris your application's ownILogger; any logger deeper in the same async flow is captured too.- Filter what is stored under
Logging:Document:LogLevel, like any provider. - A log that belongs to a record (
relatedPersistentObjectId) is readable exactly when that record is, in theLogslist and on its own page alike. Nobody may read logs until yoursecurity.jsongrantsRead/Log.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- MintPlayer.SourceGenerators.Attributes (>= 13.1.2)
- MintPlayer.Spark (>= 11.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.