Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
0.9.7
-
None
-
None
-
Linux
Description
The LOG4CXX macros use a temporary ostringstream variable named oss which hides other declarations. For example, the following will print blanks.
ostringstream oss(“some stuff”);
LOG4CXX_INFO(logger, oss);
Possible fix is to use namespace with the temp variable.
It's a trivial bug, but a pain to track down.