开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜