Custom logging function

zljubisic at gmail.com zljubisic at gmail.com
Fri May 29 11:08:50 EDT 2020


Hi Peter.
Finally I got it. :)

That's it. It works. Thanks.

So, in each class, I will in init method execute:
self.logger = logging.getLogger()

and than everywhere use self.logger.debug('...') in order to produce the message.

Best regards.


More information about the Python-list mailing list