I had to upgrade an app. that used log4cxx. We made a lot of use of lines 
like:

LOG4CXX_INFO(eventLogger, _T("Binding to: " << sBindIP.c_str() << ". Port: " 
<< usPort << ". Link: " << sLinkNo.c_str()));

I.e. we used inline ostringstream constructs.

In 0.9.8 none of this appears to work. We appear to have to make major 
modifications to our code along the lines of:

ostringstream os;
os << _T("Binding to: " << sBindIP.c_str() << ". Port: " << usPort << ". 
Link: " << sLinkNo.c_str());
LOG4CXX_INFO(eventLogger, os.str().c_str());

Am I missing a way to continue with inline ostringstream?

Many thanks., 



Reply via email to