streamlog

streamlog is a lightweight logging library for C++ that provides:

  • a large number of customizable verbosity levels for DEBUG, MESSAGE, WARNING and ERROR messages
  • logging to any std::ostream like std::cout or std::ofstream (a plain file)
  • customizable scope pre-fixes
  • optional compile time control (no overhead in space or time for de-activated message levels)
  • macros for C++ output stream operators:

           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.