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");
}
________________________________________________
Andrew Wireless Systems GmbH
Industriering 10
D-86675 Buchdorf
Germany
Georg Koller
Product Development - SW
Tel. +49 9099 69-189
Fax +49 9099 69-140
geo...@an...
________________________________________________
Andrew Wireless Systems GmbH, Industriering 10, D-86675 Buchdorf
Managing Directors: Michael Ferber, Neil Shankland, Michael D. Coppin
Phone: +49 (0) 90 99/69-0, Fax: +49 (0) 90 99 69-9 30, Internet:
www.andrew.com <http://www.andrew.com/>
Amtsgericht Augsburg, HRB No: 949, German Tax-No: 152/121/50468, VAT:
DE127491606
------------------------------------------------------------------------------------------------
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information.
If you have received it in error, please notify the sender
immediately and delete the original. Any unauthorized use of
this email is prohibited.
------------------------------------------------------------------------------------------------
[mf2]
|