Hi,

I'm using log4cxx on Linux with gcc, and I have a very simple setup:

static LoggerPtr logger(Logger::getLogger("main"));
BasicConfigurator::configure();
LOG4CXX_INFO(logger, "Entering application.");

This results in the following log line:

0 [0x7fba18564770] INFO main null - Entering application.

As
you can see, the file name and line number are missing (it's showing
null instead). When I run a simple "cout << __FILE__ <<
endl" I see the file name, so I'm not sure why this is happening.

Thanks,
Tomer



      

Reply via email to