Added log.hpp and log.cpp