C
C#17mo ago
Johannes M

❔ Serilog Extend LogLevels or Intercept Logs

I am using Serilog and I have a specific use case right. I got three sinks (Console, File, SQLServer) and for each I am filtering based on loglevel. Is there a way in which I can have an interceptor of sorts that when I log a level of Information but with a specific identifier it logs to a different sink and if it doesn't then log to the default sink configured
2 Replies
dan in a can
dan in a can17mo ago
might you be looking for something like this? https://github.com/serilog/serilog-expressions#readme
GitHub
GitHub - serilog/serilog-expressions: An embeddable mini-language f...
An embeddable mini-language for filtering, enriching, and formatting Serilog events, ideal for use with JSON or XML configuration. - GitHub - serilog/serilog-expressions: An embeddable mini-languag...
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?