add the basic logger function #7