Implemented a logging system
Implemented the new logger.