Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setup_logging():
logger = log.getLogger()
log.enableStreamHandler(True)
log.LEVEL = logging.INFO
return logger
def logger(self) -> Logger:
"""Get a logger for this node
:return: logger with a name that can be traced back easily to this node.
"""
name = self.__module__ + '.' + self.__class__.__name__ + '.' \
+ self.name()
logger = log.getLogger()
logger.setLevel(log.LEVEL)
return logger
def logger():
logger = plottrlog.getLogger('plottr.apps.inspectr')
return logger