2011-06-10 61 views
0

我只是想知道如何更改值NLog.config例如從其他文件的配置文件,如何設置值NLog.config

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

我想改變logDirectory值是「C:/ logs/$ {shortdate}」,當然我想從其他配置文件中獲取值。有可能這樣做嗎?

在此先感謝。

回答

0

你可以使用configSource =「YourConfigFile」

+0

我添加了我的config.xml,它不工作 – user1012506 2018-02-28 11:59:46