c logging thats only around when you want it