Format code in RequestLogger middleware.