Simple Logger in C