simply logging code.
add Makefile.