Custom dump file

Hi. I am new in mitmproxy.
I want to save logs, but just a few information like time, URL and size.

How can I save a customized log file?

Many thanks in advance.

you can write a script to transform the log
https://docs.mitmproxy.org/stable/tools-mitmdump/#scripted-data-transformation