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?
At the moment the SRM solution only offers to log actions related to a booking.
But maybe, for your use case, it would work out to first create an "empty" booking where the resources that need to be selected by the user in the wizard aren't auto selected. Later, when the user selects the resource in the wizard they can be assigned to that booking immediately.
Please do not use the mentioned workaround, ask for a new feature or implement your own logger.
Creating an empty booking and assigning the resources later as a performance impact.
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.