本文整理汇总了Python中Logging.backtrace方法的典型用法代码示例。如果您正苦于以下问题:Python Logging.backtrace方法的具体用法?Python Logging.backtrace怎么用?Python Logging.backtrace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Logging
的用法示例。
在下文中一共展示了Logging.backtrace方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getColorTransferFunction
# 需要导入模块: import Logging [as 别名]
# 或者: from Logging import backtrace [as 别名]
def getColorTransferFunction(self):
"""
Returns the ctf of this object
"""
if not self.dataSource and not self.ctf:
Logging.backtrace()
Logging.info("Using no ctf because datasource = ", self.dataSource, kw = "ctf")
return None
if not self.ctf:
self.ctf = self.dataSource.getColorTransferFunction()
#Logging.info("Ctf from datasource = ", self.ctf, kw = "ctf")
return self.ctf
示例2: onPaint
# 需要导入模块: import Logging [as 别名]
# 或者: from Logging import backtrace [as 别名]
def onPaint(self, event):
"""
Blit the buffer
"""
if self.renew:
try:
self.paintTrack()
except Exception, e:
Logging.backtrace()
Logging.info("Failed to paint track", kw="animator")
event.Skip()
self.renew = False
示例3: onWarning
# 需要导入模块: import Logging [as 别名]
# 或者: from Logging import backtrace [as 别名]
def onWarning(obj, evt, *args):
"""
Show VTK error messages
"""
Logging.backtrace()
print "VTK message:\n", evt