Mavproxy with dronekit python terminal grabbing

I’ve got a TKinter app running from python talking to mavproxy, all works well, however in Mavproxy I have all the responses from the commands coming back to the terminal, for instance failure to arm messages or “>>> Reached command #7” messages or mode changed messages etc.
I know I can get mavproxy to write to a log but I’d also like to grab all these messages and bring them into my app so I can log them along side my own logging. Can anyone tell me how to do that?
Thanks