dev-libs/
log4cpp

C++ classes for flexible logging to files, syslog and other destinations

http://log4cpp.sourceforge.net/