Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nlog/nlog.targets.redis
NLog Target for writing to Redis
https://github.com/nlog/nlog.targets.redis
net-standard nlog nlog-target redis
Last synced: 10 days ago
JSON representation
NLog Target for writing to Redis
- Host: GitHub
- URL: https://github.com/nlog/nlog.targets.redis
- Owner: NLog
- License: mit
- Created: 2018-10-09T21:55:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-15T17:03:55.000Z (about 1 year ago)
- Last Synced: 2024-12-01T16:57:11.249Z (about 1 month ago)
- Topics: net-standard, nlog, nlog-target, redis
- Language: C#
- Homepage: https://nlog-project.org
- Size: 537 KB
- Stars: 10
- Watchers: 8
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build status](https://ci.appveyor.com/api/projects/status/ounar0m1gdidqram/branch/master?svg=true)](https://ci.appveyor.com/project/nlog/nlog-redis/branch/master)
[![NuGet](https://img.shields.io/nuget/vpre/NLog.Targets.Redis.svg)](https://www.nuget.org/packages/NLog.Targets.Redis)NLog.Targets.Redis
==========This project provides a custom target for the [NLog](https://github.com/NLog/NLog/) framework to allow a user to send log messages to a Redis server. The target supports sending log messages to a Redis list or to a pub/sub channel.
## Installation
NLog.Targets.Redis is available as a NuGet Package. Type the following command into the Nuget Package Manager Console window to install it:Install-Package NLog.Targets.Redis
## Usage
The `` configuration section contains five required fields and one optional field.
- host (required): The host name or IP Address of the Redis server.
- port (required): The port the Redis server is listening on, defaults to `6379`.
- key (required): The key that should be used to identify the Redis list or the pub/sub channel to which the log messages are being delivered.
- dataType (optional): The Redis data type that should be used to store the log messages. This can be either `list` or `channel`, defaults to `list`.
- channelPattern (optional): The Redis Channel Pattern to use when dataType = `channel`. This can be either `literal` or `pattern`, defaults to `auto`.
- layout (required): The layout that defines the format of the message to be sent to the Redis target.
- db (optional): The Redis database id to store the log messages in, if the Redis database type `list` is chosen.
- clientName (optional): The Client name to use for all Redis connections.
- configurationOptions (optional): Additional configuration options (comma delimited). See [Configuration Options](https://stackexchange.github.io/StackExchange.Redis/Configuration.html)## Config File
```xml
```
## NotesThis is a fork of https://github.com/richclement/NLog.Redis
## Admin
### How to release
1. Create a new release with a new tag
2. Wait for the build