Need to get only request 'headers and its body' mitmdump

Just wanted to ask that is it possible in mitmdump to get only the request headers and its body content
I did use mitmdump -dd but that does also give me response headers and its content,which makes the file really big…
Can anybody please provide me a link or advice on this can be done?

You can implement a custom logger as a mitmproxy script: https://github.com/mitmproxy/mitmproxy/tree/master/examples