logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yiannis Feidaros <jf...@freemail.gr>
Subject Re: How to use %F %L?
Date Mon, 28 Jun 2004 13:14:54 GMT
Christophe de VIENNE wrote:

> 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
>
Thanks a lot Christophe!

Best regards,
Yiannis


____________________________________________________________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.

Mime
View raw message