New submission from Chetan kolhe <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue34244>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com