Message322462
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 |
|
Date |
User |
Action |
Args |
2018-07-27 05:15:40 | chetankolhe | set | recipients:
+ chetankolhe |
2018-07-27 05:15:40 | chetankolhe | set | messageid: <1532668540.12.0.56676864532.issue34244@psf.upfronthosting.co.za> |
2018-07-27 05:15:39 | chetankolhe | link | issue34244 messages |
2018-07-27 05:15:39 | chetankolhe | create | |
|