[New-bugs-announce] [issue34244] Add support of check logger

Chetan kolhe report at bugs.python.org
Fri Jul 27 01:15:40 EDT 2018


New submission from Chetan kolhe <chetankolhe72 at gmail.com>:

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

----------
components: Library (Lib)
messages: 322462
nosy: chetankolhe
priority: normal
severity: normal
status: open
title: Add support of check logger
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34244>
_______________________________________


More information about the New-bugs-announce mailing list