A C logging framework