A (very) simple logging utility in C