Home › Forums › Support › Using NLog.config › Reply To: Using NLog.config
June 14, 2013 at 22:16
#896
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
