problem mit log4cxx
-
hallo leutz,
habe leider ein problem mit der benutzung von log4cxx:
ich habe eine library geschrieben die von einer anderen anwendung benutzt wird. die library soll log4cxx zum loggen benutzen.
library funktionalitaeten werden ueber eine singleton instanz einer klasse benutzt. im konstruktor meines singletons habe ich zu stehen:LoggerPtr logger(Logger::getLogger("LCtrl")); // //////////////////////////////////////////////// B_LCtrl::B_LCtrl( ) // //////////////////////////////////////////////// { PropertyConfigurator::configure("log4cxx_lctrl.conf"); LOG4CXX_DEBUG(logger, ">>>>> Creating LCtrl Instance .."); }
mein log4cxx konfigurations-file sieht so aus:
log4j.rootLogger=DEBUG, stdout, file #log4j.rootLogger=INFO, DEBUG, file #log4j.rootLogger=DEBUG, file # stdout configuration log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d %t %-5p %c - %m%n # file configuration log4j.appender.file=apache.log4j.RollingFileAppender log4j.appender.file.File=log/LCtrl_lctrl.log log4j.appender.file.MaxFileSize=1000KB log4j.appender.file.MaxBackupIndex=1 log4j.appender.file.layout=org.apache.log4j.PatternLayout #log4j.appender.file.layout.ConversionPattern=%p %t %c - %m%n log4j.appender.file.layout.ConversionPattern=%d %t %-5p %c - %m%n
das problem ist, dass ich ein SIGSEGV bekomme, wenn ich ueber den configure aufruf im konstruktor gehe.
der call-stack geht runter bis zu einer funktion namens __exchange_and_add einer system-lib (libstdc++.so).
hat jemand schonmal mit sowas erfahrungen gemacht?
gruss