Friday 13 August 2021

Getting the class name of an instance?

 Do you want the name of the class as a string?

instance.__class__.__name__


from: https://stackoverflow.com/questions/510972/getting-the-class-name-of-an-instance

madzak / python-json-logger

 

Overview

This library is provided to allow standard python logging to output log data as json objects. With JSON we can make our logs more readable by machines and we can stop writing custom parsers for syslog type records.


from: https://github.com/madzak/python-json-logger#using-a-config-file