The code crashes with segmentation fault as it exits the code is as follows:
try { logger = Logger::getLogger("MyTesting"); PropertyConfigurator::configureAndWatch("log1.conf",1); LOG_INFO_MESSAGE("start\n"); std::string mehr = " Start"; std::string msg = mehr; for(int i =0; i<5 ; i++) { LOG_INFO_MESSAGE(mehr.c_str()); LOG_INFO_MESSAGE(msg.c_str()); sleep(2); } } catch(...) { exit(0); } return 0; LOG_INFO_MESSAGE - is just a macro Program received signal SIGSEGV, Segmentation fault. apr_pool_create_ex (newpool=0x7fff5fc322b0, parent=0x60b648, abort_fn=0, allocator=0x607530) at memory/unix/apr_pools.c:249 249 memory/unix/apr_pools.c: No such file or directory. in memory/unix/apr_pools.c Current language: auto; currently c