Author chetankolhe
Recipients chetankolhe
Date 2018-07-27.05:15:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532668540.12.0.56676864532.issue34244@psf.upfronthosting.co.za>
In-reply-to
Content
Add support in logging library which will check whether the logger object already created or not .

Module:- logging

Code:-

    def check_logger(self, logger_name):
        """
        Description :- It will check whether the logger object is already present or not .
        :param logger_name:

        :return: True/False
        """
        if Logger.manager.loggerDict.get(logger_name):
            return False
        else:
            return True
History
Date User Action Args
2018-07-27 05:15:40chetankolhesetrecipients: + chetankolhe
2018-07-27 05:15:40chetankolhesetmessageid: <1532668540.12.0.56676864532.issue34244@psf.upfronthosting.co.za>
2018-07-27 05:15:39chetankolhelinkissue34244 messages
2018-07-27 05:15:39chetankolhecreate