I do the following in my application: #include<iostream> #include <log4cxx/logger.h> #include <log4cxx/xml/domconfigurator.h> #include <log4cxx/basicconfigurator.h> using namespace log4cxx; using namespace log4cxx::xml; using namespace log4cxx::helpers;
LoggerPtr logger(Logger::getLogger( "main")); int main(){ BasicConfigurator::configure(); std::cout << "stuff going on" << std::endl; LOG4CXX_INFO(logger, "Done!"); return 0; } When I run this app I get: 0 [0x7fbddb703750] INFO main null - Done! Why do I get this wierd address and 'null' value? -- View this message in context: http://old.nabble.com/Getting-a-null-value-when-logging-INFO-tp27755389p27755389.html Sent from the Log4cxx - Users mailing list archive at Nabble.com.