logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe de VIENNE <cdevie...@alphacent.com>
Subject Re: How to use %F %L?
Date Mon, 28 Jun 2004 13:03:11 GMT
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

Mime
View raw message