the in memory log should be reset after each request to ensure it only contains logging data for the current request.