11 pthread_mutex_t glogmutex = PTHREAD_MUTEX_INITIALIZER;
17 std::string configfile;
25 configfile +=
"log4cxx.cfg";
28 int res = mkdir (
"LOG", S_IRWXU | S_IXGRP | S_IRGRP | S_IXOTH | S_IROTH);
32 res = stat (
"LOG",&result);
33 if(res) std::cout <<
"Error in mkdir : " << res <<
" permission denied." << std::endl;
37 std::cout <<
"Logfile " << configfile << std::endl;
Contains definitions to LOGPZ_DEBUG, LOGPZ_INFO, LOGPZ_WARN, LOGPZ_ERROR and LOGPZ_FATAL, and the implementation of the inline InitializePZLOG(string) function using log4cxx library or not. It must to be called out of "#ifdef LOG4CXX" scope.
void InitializePZLOG()
Initializes log file for log4cxx with commom name log4cxx.cfg.