dev-libs/
log4cpp

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

https://log4cpp.sourceforge.net/