My application uses NLog as a logging framework hidden behind a facade in MyLogging project. The project is referenced by a number of web sites to not make them directly dependent on NLog. After compilation NLog.config
from the logging project ends up in bin
folders of each site and NLog manages to find it automatically during startup. That is understandable and pretty much OK. However, editing any file within bin
folder forces ASP.NET to restart the working process so I'd like to have NLog.config
one folder up beside regular web.config
.
Things I'm trying to achieve\\avoid:
web.config
(to not trigger ASP.NET auto-restart) E:\\siteroot\\0
The issue is not actually NLog specific as I'd have same trouble with standard app.config
files. What are my options here?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.