-
Notifications
You must be signed in to change notification settings - Fork 33
Logging debug output with Serilog #155
Comments
Hi Jon, Thanks for the info on setting up Serilog, I'll get that added to the Wiki. I've been trying to keep up with the other issues you've raised and happy to review any changes you feel would be appropriate when piping to StdOut/Err. I've not done much research into using the new Thanks, |
Yeah I was going in about three directions at once in that other topic, sorry about that. The MMALCamera.Cleanup exception I mentioned over there was because I was using the new one-liner Since you already had From a package-consumer standpoint there are just two changes:
That extra task manages buffering and shutdown:
Apart from that it's basically the ffmpeg handler. |
Notes added to wiki. |
Here's a note for your Logging topic in your wiki about how to set up Serilog. It doesn't normally work with
LoggerFactory
the way older loggers do (I used to be a frequent Serilog contributor), so it's kind of hard to track down how this is done because one of the packages has been mostly superseded by builder-helpers in other packages. The dependencies are Microsoft.Extensions.Logging, Serilog.Extensions.Logging, and Serilog.Sinks.File.There are many other possible approaches, but at a minimum this gets the job done:
The text was updated successfully, but these errors were encountered: