コード例 #1
0
 def cmd_critical(self):
     """Set log level to CRITICAL"""
     logger.setLevel(logging.CRITICAL)
     logger.critical('Switching to CRITICAL threshold')
コード例 #2
0
 def cmd_error(self):
     """Set log level to ERROR"""
     logger.setLevel(logging.ERROR)
     logger.error('Switching to ERROR threshold')
コード例 #3
0
 def cmd_info(self):
     """Set log level to INFO"""
     logger.setLevel(logging.INFO)
     logger.info('Switching to INFO threshold')
コード例 #4
0
 def cmd_warning(self):
     """Set log level to WARNING"""
     logger.setLevel(logging.WARNING)
     logger.warning('Switching to WARNING threshold')
コード例 #5
0
 def cmd_debug(self):
     """Set log level to DEBUG"""
     logger.setLevel(logging.DEBUG)
     logger.debug('Switching to DEBUG threshold')