PDA

View Full Version : Problem with Logging in Windows service Example



swalters
05-23-2007, 05:41 PM
Hi,

Has anyone gotten logging to work with a Spring Windows Service. I'm using the 5/15 nightly build and I've tried every option I know of to get the logging to work in the example project.

If anyone is logging from a Windows Service I would really appreciate and example or some pointers.

Thanks,

-Shane

swalters
05-23-2007, 10:05 PM
As a follow up, I was able to get logging to work with DebugViewer using:

<common>
<logging>
<factoryAdapter type="Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging">
<arg key="level" value="DEBUG" />
</factoryAdapter>
</logging>
</common>

I still haven't figured out how to log to a file in a Windows service which is what I ultimately need to do.

-Shane