streamlog is a lightweight logging library for C++ that provides:
streamlog_out( DEBUG ) << " debug " << std::endl ;
streamlog can be downloaded at https://svnsrv.desy.de/viewvc/aidasoft/eUtil/trunk/streamlog.
Online documentation can be found here.
It is also included in the eUtil package.