Create simple logger middleware.

Something went wrong when register the middleware to app. The client
cannot connect, need to investigate.