On Mar 18, 2008, at 9:09 AM, Josh Kelley wrote:
I saw that I can use the << operator within the LOG4CXX_DEBUG, etc.
LOG4CXX_DEBUG(logger, "Read " << path << " and got " << out);
This seems very convenient (and a whole lot more convenient than
formatting strings myself or having to use something like
boost::format for every log statement), but as far as I can tell, it's
undocumented. Is this use of operator<< officially supported, or is
it an implementation detail that I should not be relying upon?
If it is supported, then can I add a wiki page about it? If it's not
supported, then is there a recommended way of doing formatted logging?