Create log.c

logging & debugging