This is because you are not passing any of the information into the log()
function. The log()
function is declared as follows:
void log(LogLevel ll, const log4cplus::tstring& message,
const char* file=NULL, int line=-1) const;
As you can see, unless you provide the file and line information, it passes in "empty" values.
Either you pass the information down yourself or you include log4cplus/loggingmacros.h
and use provided logging macros, which do that for you.