logging library written in C