avocado: Add avocado.linux handler

上级 d4f2c719
......@@ -40,6 +40,10 @@ DEFAULT_LOGGING = {
'level': 'DEBUG',
'propagate': False,
},
'avocado.linux': {
'level': 'DEBUG',
'propagate': False,
},
}
}
......
......@@ -69,8 +69,10 @@ class OutputManager(object):
self.file_handler.setFormatter(formatter)
test_logger = logging.getLogger('avocado.test')
utils_logger = logging.getLogger('avocado.utils')
linux_logger = logging.getLogger('avocado.linux')
test_logger.addHandler(self.file_handler)
utils_logger.addHandler(self.file_handler)
linux_logger.addHandler(self.file_handler)
def stop_file_logging(self):
"""
......@@ -78,8 +80,10 @@ class OutputManager(object):
"""
test_logger = logging.getLogger('avocado.test')
utils_logger = logging.getLogger('avocado.utils')
linux_logger = logging.getLogger('avocado.linux')
test_logger.removeHandler(self.file_handler)
utils_logger.removeHandler(self.file_handler)
linux_logger.removeHandler(self.file_handler)
self.file_handler.close()
def info(self, sr):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册