How I can log the TLS master secrets with mitmproxy and use it in the wireshark

Hi,
How I can log the TLS master secrets with mitmproxy. I follow the instruction here http://docs.mitmproxy.org/en/stable/dev/sslkeylogfile.html
and I searched online for more explanation but unfortunately it did not work or maybe I did something wrong.
If some one did this process and it work with him, please help.
Notice, that I need to log the TLS then I want to use it in the Wireshark to decrypt the traffic and be able to save the decrypted file at the same time.

Thank you
Anoud