Home Forums Support Using NLog.config Reply To: Using NLog.config

#896
Anonymous
Inactive

Heya Namikon,

Many thanks for your interest in our library and welcome to our forums.

In answer to your question, yes absolutely. In your application use the following syntax:

string logFileName = "nlog.config";
if(System.IO.File.Exists(logFileName))
    NetworkComms.EnableLogging(new NLog.Config.XmlLoggingConfiguration(logFileName));

I will update the logging tutorial to include this example.

Kind regards,
Marc