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 Streaming wstring into log4cxx::StringBuffer
Date Tue, 12 Apr 2005 09:22:28 GMT
I'm using log4cxx 0.9.7 and I have read a wstring into v and want to 
output it to the log. I do like:
::log4cxx::StringBuffer oss;
oss << "BufferReader::Readstring, data : " << v.c_str();

However in the output I get
18845 [3209966400] INFO  whine  - BufferReader::ReadString, data : 0x81f89cc

i.e. I get the pointer and not the string like I would hope. I have 
tried a few other methods, but with no luck.
How should I do to output a wstring?

-- 
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