added a basic logger