How can I, a Serilog newbie, configure Serilog to write info (and errors) to a rolling file in the App_Data
directory of an ASP.NET WebApi 2 app and email errors to a specific address?
Here are the details of my question:
While I appreciate the existing documentation, I would like to see some more complex/realistic examples. For instance, what are the best practices around dependency injection? Will I run into collisions if my app instantiates multiple ILoggers? Is there a sample app that wires up multiple sinks? What should I avoid doing with Serilog?
Beyond that, it seems like a great project. I just need more guidance to use it in a production app.