Yiannis Feidaros wrote:

Hi all,

The conversion characters (%F: %L) return (:-1) when using them. What might be wrong?

<snip>

I' using the "trivial" example bundled with the download package. Below is the code:

       logger->error(_T("error message"));
       logger->fatal(_T("fatal message"));

%F and %L will work only if you use LOG4CXX_ macros. The abose lines need to be written this way:
LOG4CXX_ERROR(logger, _T("error message"));
LOG4CXX_FATAL(logger, _T("fatal message"));



Regards,

Christophe

Reply via email to