Implemented the log route