Implemented the logger with mock tests