If I want to achieve the best performance with NLog , what should I do in my code for this?
(Of course, I have async enabled in NLog.config.)
How to use a delegate to write log messages?
_logger.Info(() => { return "test" });
Unfortunately, I could not figure out how to use this “correctly”. Is it even documented?
_logger.Info(() => { return string.Format("msg", myParams); });
source
share