We would like to have some (debug) logging related to the execution of a custom booking wizard script. How do we best do this?
We want to avoid the use of information events.
When checking the SrmLogHandler it requires a reservation. We do not have a reservation yet when we want to pass progress or debug logging when setting things up in the wizard.
For example, the wizard has to find matching resources based on user selection, when this goes wrong we also want to log the reason for future reference.
Hi Jorge,
Do you have any suggestions on how to best implement our own logger?
I think asking for a new feature from us is the best approach here, then everything will get logged in the same log file, yours and ours.
Though if you want to create your own logger, we use Serilog (https://serilog.net/) to log in the background and we just put some wrappers around to create the files and format as we want.
There are other loggers for .Net, though was best for us, performance, usage and configure wise. It’s a NuGet package so it’s very easy to include in your project.