I am using serilog for all my log handling.
I have a method which takes in a filename and processes it inside the method. something like this
ProcessFile(String filename)
{
log.info("started");
log.info("completed");
}
How can I write the logs to a new logfile everytime the method is called to something like {{filename_timestamp}}.log?
Does serilog allow this? Is there a way I can inject the logger into the method directly?