In common logging V2.0 there are two methods of avoiding costs of message evaluation when LogLevel is higher than the log entry:
if (Log.IsDebugEnabled)
Log.Debug("Debug message");
or
Log.Debug(a => a("Debug message"));
Which practice is better? What are the pros & cons?
According to documentation:
So the second option in your quesetion considered a best practice.