How can I define the location of NLog file in code?
Is there a way to define what config file NLog is suppos开发者_开发百科ed to use directly using c# code?
You should be able to do something like this (note that I have neither compiled nor tested this):
string path = GetThePathToYourNLogConfigFile();
LogManager.Configuration = new XmlLoggingConfiguration(path);
精彩评论