logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Staffan Vilcans <staffan.vilc...@jadestone.se>
Subject Not logging message
Date Thu, 14 Apr 2005 08:42:21 GMT
I have a strange problem with the logging using log4cxx 0.9.7 under Fedora.

When I use static text, i.e. LOG4CXX_INFO(iLogger, "message"); it works 
like I would expect. But if I instead use the stream like
::log4cxx::StringBuffer oss;
oss << "The number is " << v;
LOG4CXX_INFO(iLogger, oss.str());

I get the header, but not the text, i.e.
2552 [3210154816] INFO  collection  -
instead of the expected
2552 [3210154816] INFO  collection  - The number is 42

I then changed to using iLogger->info(oss.str()); instead and it worked 
like it should.
Is this a known issue?

-- 
Cell: +46 737 282 486
Phone: +46 8 442 75 94 (ext 242)
Fax: +46 8 24 05 08
www.jadestone.se
Björns Trädgårdsgränd 1, 116 21 Stockholm, Sweden


Mime
View raw message