I have a python logging object type for e.g: that is written in a text file and I am trying to convert that