Log requests in a structured format to MongoDB