Android logcat with Appium Python - dump to a file

Hi. I am trying to dump logcat for each test or even better for each failing test.
I am using WebDriver in Appium 2.5.1:

self.driver.get_log('logcat')

but not sure what would be best way to dump it to a file. I tried using Python logging module for that but this does not give me logcat in nice format. What would be the best way to dump this to a file?

Good info here:

What I am doing is logging the android logcats for each test in critical flows/Api Calls in Extent Report using the first commentators provided article @Device_High