I have many features in my WinForms project and I use NLog for logging. I want to be able to wrap each function with nlogger.Info("start") and nlogger.Info("end") , so I will find out where the actual exception occurred or where the code is currently executing.
Is there any reasonable way to do this, or will I need to place the lines on top in all my functions?
source share