Simple configurable logging for C