Implemented the logging framework