redis-ilogger
1.0.8
dotnet add package redis-ilogger --version 1.0.8
NuGet\Install-Package redis-ilogger -Version 1.0.8
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="redis-ilogger" Version="1.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="redis-ilogger" Version="1.0.8" />
<PackageReference Include="redis-ilogger" />
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 redis-ilogger --version 1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: redis-ilogger, 1.0.8"
#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 redis-ilogger@1.0.8
#: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=redis-ilogger&version=1.0.8
#tool nuget:?package=redis-ilogger&version=1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Microsoft.Extensions.Logging.Redis
A Redis ILogger provider that writes log events to a Redis list using StackExchange.Redis.
Usage
var services = new ServiceCollection();
services.AddLogging(x =>
{
x.AddRedis("localhost:6379", "my-list-key");
x.AddSimpleConsole();
});
var serviceProvider = services.BuildServiceProvider();
var logger = serviceProvider.GetRequiredService<ILogger<Program>>();
logger.LogInformation("This is a test log message");
The following JSON format is written to Redis as a list entry (a RedisLogEntry object):
{
"timestamp":"2025-10-05T10:29:39.7661863+00:00",
"level":"Information",
"category":"Program",
"message":"This is a test log message",
"state":{}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.9)
- StackExchange.Redis (>= 2.9.25)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.