Log4Net with WCF Running As Service
I am running a WCF Service as Windows Service. I am having trouble getting log4net to do any actual logging
In what app.config should I place my configuration code for lo开发者_开发知识库g4net.
The Service Host app.config the Service app.config or the underlying methods that the Service Calls?
-b
I've run into design issues like this when I was writing my own logging system. An app.config for a dll assembly won't load. The executable for your app/service/etc. is what loads and ignores the dll config. You will have to either implement your own read/write/load/etc config code or just set all config values into the service's app.config (much better idea if possible).
精彩评论