Implemented a logger