Liblogging is an easy to use, portable, open source library for system logging
http://www.liblogging.org