PDA

View Full Version : Logging in Windows Services


choenes
01-05-2006, 09:45 PM
This may be identical to other spring applications but how do I used log4net in a spring windows service?

e.g. where do I put the log4net configuration? In the Spring.WindowsService.exe.config file or in the deployed service's "service.config" file?

choenes
01-05-2006, 10:39 PM
I figured out what I needed to do. I put the log4net configuration in the service.config file and it works like it should. Part of the problem was that I was not writting to the correct logger defined in the config file.