开发者

How to set value to NLog.config

开发者 https://www.devze.com 2023-03-12 14:07 出处:网络
I am just wondering ho开发者_如何学JAVAw to change the value in NLog.config file from other file configuration for example,

I am just wondering ho开发者_如何学JAVAw to change the value in NLog.config file from other file configuration for example,

<variable name="logDirectory" value="${basedir}/logs/${shortdate}"/>

I want to change logDirectory value to be "C:/logs/${shortdate}" and of course I want to get the value from other configuration file. Is it possible to do that?

thanks in advance.


You can use configSource="YourConfigFile"

0

精彩评论

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