IzyPro / WatchDog

WatchDog is a Realtime Message, Event, HTTP (Request & Response) and Exception logger and viewer for ASP.Net Core Web Apps and APIs. It allows developers log and view messages, events, http requests made to their web application and also exception caught during runtime in their web applications, all in Realtime.
MIT License
765 stars 115 forks source link

Integration With Serilog #114

Closed HakamFostok closed 1 year ago

HakamFostok commented 1 year ago

I watched the video on .NET Conf, and I really like it, I had a question (and if the answer is no, then I would like to make it a request) Does WatchDog integrate with Serilog? So if I have Serilog already, can I put WatchDog on top of it, and all the logs go to the sink that Serilog specifies Actually, I think if WatchDog uses the .NET Logging API then It will integrate with Serilog well

Thank you

Khelechy commented 1 year ago

Thank you, the package doesnt currently support a direct implementation for sinking logs to Serilog, how ever WatchDog works seamlessly with the .Net ILogger interface. You can refer to the docs to see how you can achieve that.

VictorioBerra commented 9 months ago

@HakamFostok I could not get this to work.

What if we created a Sink to sink logs to WatchLogger?

We could publish to NuGet as Serilog.Sinks.WatchDog.