Add simple logger middleware.