Not enough information to go on really.
Are you using 0.9.7 or CVS HEAD?
Are you using relative paths in your configuration? They might be getting resolved to unexpected paths.
Have you tried using OutputDebugAppender and monitoring the service with DebugView (http://www.sysinternals.com/ntw2k/freeware/debugview.shtml) or other Debug monitor? That would at least allow you to check that configuration works as expected and then progress to figuring out why a particular appender isn't working as expected.
log4cxx doesn't do any trickery with privileges, the process has to have the rights to create and write to the log file.
On Mar 14, 2005, at 6:36 PM, Drapal, Myron E (Myron) wrote:
Has anyone tried to log from a Windows Service? It seems to work if the service is started from the command line, but if the log entries are generated after the service is started (via the Control Panel Services Applet), the logs are not written. I think that this is most likely a security policy problem, but don’t know what security context that log4cxx is expecting (i.e. does it set the security context anywhere, what permissions does it expect to have when the files are created/written)?
Myron Drapal
[EMAIL PROTECTED]
<Drapal, Myron E (Myron).vcf>