pystafmon.py
来自「Software Testing Automation Framework (S」· Python 代码 · 共 27 行
PY
27 行
############################################################################## Software Testing Automation Framework (STAF) ## (C) Copyright IBM Corp. 2001 ## ## This software is licensed under the Common Public License (CPL) V1.0. ############################################################################### STAFMonitorDoLog - This function simply provides a function wrapper around# the LOG request of the Monitor servicedef STAFMonitorDoLog(stafHandle, message, system = "local", service = "Monitor"): return stafHandle.submit(system, service, "LOG MESSAGE :%d:%s" % \ (len(message), message))# STAFMonitor - This class is a wrapper around the STAF monitor service.# It currently only provides a means to monitor locally.class STAFMonitor: def __init__(self, stafHandle, system = "local", service = "Monitor"): self.handle = stafHandle self.system = system self.service = service def log(self, message): return STAFMonitorDoLog(self.handle, message, self.system, self.service)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?