Log4c is a C library for flexible logging to syslog, files, and other destinations.It is modeled after the Log for Java library, staying as close to their API as is reasonable.
Log4c will offer you ANSI C functions and macros for flexible logging to files and other destinations.