I believe the address is the thread and the null is that you have no nested diagnostic context. If you don't want to see this configure your logging to use a different format.
On Tue, Mar 2, 2010 at 7:41 AM, mort.motes <[email protected]> wrote: > > 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. > > -- Dale King
