dburriss / serilog-sinks-redis

I am a Serilog sink for Redis
MIT License
9 stars 6 forks source link

Writing logs to redis #28

Open sanzor opened 4 years ago

sanzor commented 4 years ago

Hello i have a ASP NET Core application where i am already using Serilog for logging to Console and also to a File.

I will also need to write some special logs to a Redis channel. My question would be how can one choose which logs to write to a particular sink , in this case the Redis sink.

dburriss commented 4 years ago

I suggest you ask this on StackOverflow to increase the chance of a correct answer 😊 I would think just setting up separate logger instance.

On a style note I would suggest abstracting out what goes where. https://www.erikheemskerk.nl/meaningful-logging-and-metrics/