views:

39

answers:

1

Hello To All,

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

The Service Host app.config the Service app.config or the underlying methods that the Service Calls?

-b

+1  A: 

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

jlafay
Yes, I have done this. Placing all the log4net config code in the Service as well as the Service Host .config.It doesn't seem to be picking up either.
bearrito