Adding a very simple logging middleware.