From: Václav H. <v.h...@sh...> - 2009-06-06 12:51:27
|
Koller, Georg wrote, On 2.6.2009 16:32: > Hello, > > when I use ConfigureAndWatchThread in my application and change the > configuration file, while my application is running, my application hangs. > Any ideas? > The code is printed below. > > Regards, > Georg > > > #include <log4cplus/logger.h> > #include <log4cplus/configurator.h> > > #include <unistd.h> > > using namespace log4cplus; > > int > main > (int argc, char* argv []) > { > ConfigureAndWatchThread > configureThread(LOG4CPLUS_TEXT("logger.properties"), 5 * 1000); > > Logger log1 = Logger::getInstance("test.log_1"); > LOG4CPLUS_FATAL(log1,"fatal message"); > } I have pushed some fixes on the PRODUCTION_1_0_x branch, this code should now work out of the box. Please check out the source from <https://log4cplus.svn.sourceforge.net/svnroot/log4cplus/branches/PRODUCTION_1_0_x/log4cplus> and test it. -- VH |