Install the NLog.Config package. (NuGet 3 users should install NLog and add the config manually.) Write to logger:
using NLog;
public class MyClass
{
private static Logger logger = LogManager.GetCurrentClassLogger();
public void MyMethod1()
{
logger.Trace("Sample trace mess...