c# - Basedir's parent directory - NLog configuration -


i'm using nlog in multi-project solution. set filename property of config file "${basedir}/logs/logfile.log" , problem is: logs directory being created in each project's main directory, each project has own set of logs. i'd have single log directory whole solution, means setting filename basedir's parent directory.
how can it? "../${basedir}/logs/logfile.log" doesn't seem work, logs still saved same directory.

i had similar situation. needed /logs/ directory sibling of actual directory of project. found works me with:

filename="${basedir}/../logs/logfile.log" 

i'm using nlog 2.1.0


Comments

Popular posts from this blog

php - Wordpress: Link a post to posts of another category manually -

javascript - Complete OpenIDConnect auth when requesting via Ajax -

apache - PHP Soap issue while content length is larger -