Fomratted output

Hi

I would like to get the out put of mitmproxy with intercept on continuously as below and redirect the below output to a file .

timestamp; https://google.com 345 200

Will use curl command to hit the url via proxy in a loop