C logging library