本文整理汇总了Python中log.loggersetup.LoggerSetup.is_setup_loaded方法的典型用法代码示例。如果您正苦于以下问题:Python LoggerSetup.is_setup_loaded方法的具体用法?Python LoggerSetup.is_setup_loaded怎么用?Python LoggerSetup.is_setup_loaded使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类log.loggersetup.LoggerSetup
的用法示例。
在下文中一共展示了LoggerSetup.is_setup_loaded方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_close
# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
def test_close(self):
"""
Tests close
:return: Tests results
"""
LoggerSetup.setup()
LoggerSetup.shutdown()
self.assertEqual(False, LoggerSetup.is_setup_loaded())
示例2: test_is_loaded
# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
def test_is_loaded(self):
"""
Tests is loaded
:return: Tests results
"""
LoggerSetup.setup()
result = LoggerSetup.is_setup_loaded()
LoggerSetup.shutdown()
self.assertEqual(True, result)
示例3: test_setup
# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
def test_setup(self):
"""
Tests setup
:return: Tests results
"""
LoggerSetup.setup(10)
self.assertEqual(True, LoggerSetup.is_setup_loaded())
LoggerSetup.shutdown()
示例4: test_info
# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
def test_info(self):
"""
Tests info
:return: Tests results
"""
LoggerSetup.setup(10)
logging.info("Info")
self.assertEqual(True, LoggerSetup.is_setup_loaded())
LoggerSetup.shutdown()
示例5: test_critical
# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
def test_critical(self):
"""
Tests critical
:return: Tests results
"""
LoggerSetup.setup(10)
logging.critical("Critical")
self.assertEqual(True, LoggerSetup.is_setup_loaded())
LoggerSetup.shutdown()
示例6: test_error
# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
def test_error(self):
"""
Tests error
:return: Tests results
"""
LoggerSetup.setup(10)
logging.error("Error")
self.assertEqual(True, LoggerSetup.is_setup_loaded())
LoggerSetup.shutdown()
示例7: test_warning
# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
def test_warning(self):
"""
Tests warning
:return: Tests results
"""
LoggerSetup.setup(10)
logging.warning("Warning")
self.assertEqual(True, LoggerSetup.is_setup_loaded())
LoggerSetup.shutdown()
示例8: test_debug
# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
def test_debug(self):
"""
Tests debug
:return: Tests results
"""
LoggerSetup.setup(10)
logging.debug("Debug")
self.assertEqual(True, LoggerSetup.is_setup_loaded())
LoggerSetup.shutdown()
示例9: test_log_level_tab
# 需要导入模块: from log.loggersetup import LoggerSetup [as 别名]
# 或者: from log.loggersetup.LoggerSetup import is_setup_loaded [as 别名]
def test_log_level_tab(self):
"""
Test log level tab
:return: Test results
"""
LoggerSetup.setup(10)
logging.info("%sInfo deep 2", LoggerSetup.get_log_deep(2))
logging.info("%sInfo deep 3 with - as char", LoggerSetup.get_log_deep(3, '-'))
self.assertEqual(True, LoggerSetup.is_setup_loaded())
LoggerSetup.shutdown()