Hi!
I've used log4cxx in some console aps and it's all ok. Then this time
I want to use it in a windows service and some problems came out...
If I put the following line in the service's main(), the service would
fail to start immediately:
PropertyConfigurator::configure("E:\\Works\\testService\\log4j.properties");
The same code and configuration file work well in those console apps.
The most weird thing is that any other code in the main() wouldn't run
at all when starting the service if the above line exists while the
service would start successfully if the line doesn't exist.
I've tried to put this initial configuration to somewhere else such as
in the service's initialization code, both the 0.9.7 version and the
head version from svn, both vc6 and vc7.1, both dynamical linking and
static linking...have all been tried, but the problem always exists:(
Any suggestions would be greatly appreciated:)
--
Best Regards,
Yin Gang