You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
297 B

import logging
def _getLogger(name):
"""
Retrieve a logger instance. Checks if a handler is defined so we avoid the
'No handlers could be found' message.
"""
logger = logging.getLogger(name)
# if not logging.root.handlers:
# logger.disabled = 1
return logger