New submission from Chetan kolhe :
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 ob
Chetan kolhe added the comment:
Hi
Loggers are static objects managed by the module itself. When you create one,
it won't be removed until you leave the shell
all logger instance is stored in this location.
"Logger.manager.loggerDict" which is the dictionary.
we can delete
New submission from Chetan kolhe :
Hi,
Currently, there is no support for whether the logger object is present or not.
when logging module imported in current namespace all logger object get
imported. which uses the memory.
Add the option explicitly to delete the logger object.
e.g