My program consists of one EXE library and 6 DLLs (and, of course, everyone refers to everyone), currently I have a rough static registration class (Logger), which is in my own DLL (Logger.dll), which I add to as a link to each of my projects and use ... but instead of reinventing the wheel, I was looking to replace this with nLog.
The problem is that I cannot understand how all my projects can share the same nLog configuration file (I want everything to be logged to a SAME file, and I don't want to define a configuration file for each project).
- Is there a way to have one configuration file for all my projects?
- Is it safe to do this? Will nLog in each project access a single file without causing conflicts? Does nlog already handle this correctly?
Or would I just be better off wrapping nLog in my static Logger.dll file (odd, but it will work too) and continue to do things like today in my application?
Thanks,
c # nlog
Jshchartz
source share