当前位置: 首页>>代码示例>>Python>>正文


Python Settings.get_logger方法代码示例

本文整理汇总了Python中FedoraReview.Settings.get_logger方法的典型用法代码示例。如果您正苦于以下问题:Python Settings.get_logger方法的具体用法?Python Settings.get_logger怎么用?Python Settings.get_logger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FedoraReview.Settings的用法示例。


在下文中一共展示了Settings.get_logger方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from FedoraReview import Settings [as 别名]
# 或者: from FedoraReview.Settings import get_logger [as 别名]
 def __init__(self):
     self.bug = None
     self.checks = None
     self.log = Settings.get_logger()
     self.verbose = False
     self.outfile = None
     self.prebuilt = False
开发者ID:pombredanne,项目名称:FedoraReview,代码行数:9,代码来源:review_helper.py

示例2: setUp

# 需要导入模块: from FedoraReview import Settings [as 别名]
# 或者: from FedoraReview.Settings import get_logger [as 别名]
 def setUp(self):
     if not srcpath.PLUGIN_PATH in sys.path:
         sys.path.append(srcpath.PLUGIN_PATH)
     sys.argv = ['fedora-review', '-b', '1']
     Settings.init(True)
     self.log = Settings.get_logger()
     self.helpers = HelpersMixin()
     self.srpm_file = os.path.join(os.path.abspath('.'),
                                   'test_misc',
                                   'python-test-1.0-1.fc17.src.rpm')
     self.startdir = os.getcwd()
     Mock.reset()
开发者ID:athos-ribeiro,项目名称:FedoraReview,代码行数:14,代码来源:test_misc.py

示例3: setUp

# 需要导入模块: from FedoraReview import Settings [as 别名]
# 或者: from FedoraReview.Settings import get_logger [as 别名]
 def setUp(self):
     sys.argv = ['fedora-review', '-b', '1']
     Settings.init(True)
     self.log = Settings.get_logger()
     self.helpers = HelpersMixin()
     self.srpm_file = os.path.join(os.path.abspath('.'),
                                   'test_misc',
                                   'python-test-1.0-1.fc16.src.rpm')
     self.spec_file = os.path.join(Mock.get_builddir('SOURCES'),
                                   'python-test.spec')
     self.startdir = os.getcwd()
     Mock.reset()
开发者ID:pombredanne,项目名称:FedoraReview,代码行数:14,代码来源:test_misc.py

示例4: setUp

# 需要导入模块: from FedoraReview import Settings [as 别名]
# 或者: from FedoraReview.Settings import get_logger [as 别名]
 def setUp(self):
     sys.argv = ['fedora-review', '-b', '1']
     self.startdir = os.getcwd()
     Settings.init(True)
     self.log = Settings.get_logger()
     self.helpers = HelpersMixin()
     self.spec_file = os.path.join(os.path.abspath('.'),
                                   'test_regressions',
                                   'test_107_1.spec')
     self.srpm_file = os.path.join(os.path.abspath('.'),
                                   'test_regressions',
                                   'test_107_1-1.0-1.fc17.src.rpm')
     Mock.reset()
开发者ID:pombredanne,项目名称:FedoraReview,代码行数:15,代码来源:test_regressions.py

示例5: setUp

# 需要导入模块: from FedoraReview import Settings [as 别名]
# 或者: from FedoraReview.Settings import get_logger [as 别名]
 def setUp(self):
     sys.argv = ['fedora-review','-n','python-test','--prebuilt']
     Settings.init(True)
     ReviewDirs.reset()
     ReviewDirs.workdir_setup('.', True)
     self.log = Settings.get_logger()
     self.helpers = Helpers()
     self.srpm_file = os.path.join(os.path.abspath('.'),
                                   os.path.basename(TEST_SRPM))
     self.spec_file = os.path.join(Mock.get_builddir('SOURCES'),
                                     os.path.basename(TEST_SPEC))
     self.source_file = os.path.join(Mock.get_builddir('SOURCES'),
                                     os.path.basename(TEST_SRC))
     if not os.path.exists(TEST_WORK_DIR):
         os.makedirs(TEST_WORK_DIR)
     self.helpers._get_file(TEST_SRPM, TEST_WORK_DIR)
     self.startdir = os.getcwd()
     for tree in ['python-test', 'results']:
         if os.path.exists(tree):
             shutil.rmtree(tree)
     Mock.reset()
开发者ID:hadrons123,项目名称:FedoraReview,代码行数:23,代码来源:test_misc.py

示例6: __init__

# 需要导入模块: from FedoraReview import Settings [as 别名]
# 或者: from FedoraReview.Settings import get_logger [as 别名]
 def __init__(self, checks):
     AbstractRegistry.__init__(self, checks)
     self.groups = checks.groups
     self.checks = checks
     self.log = Settings.get_logger()
开发者ID:timlau,项目名称:FedoraReview,代码行数:7,代码来源:shell_api.py

示例7: setUp

# 需要导入模块: from FedoraReview import Settings [as 别名]
# 或者: from FedoraReview.Settings import get_logger [as 别名]
 def setUp(self):
     self.log = Settings.get_logger()
     self.startdir = os.getcwd()
开发者ID:athos-ribeiro,项目名称:FedoraReview,代码行数:5,代码来源:fr_testcase.py

示例8: setUp

# 需要导入模块: from FedoraReview import Settings [as 别名]
# 或者: from FedoraReview.Settings import get_logger [as 别名]
 def setUp(self):
     self.log = Settings.get_logger()
开发者ID:ralphbean,项目名称:FedoraReview,代码行数:4,代码来源:test_options.py


注:本文中的FedoraReview.Settings.get_logger方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。