The LOG4CXX_DEBUG and similar macros pass __FILE__ and __LINE__ to the underlying Logger method, but the class name and method are not available. I've added log4cxx::spi::location::LocationInfo mimicing the corresponding log4j class as part of
LOGCXX-18 (stream based API) that I'd expect to use in resolving this bug, however since it will require an API change, this bug will be deferred to 0.9.9.