开发者

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜