python??log????
???????????? ???????[ 2013/9/30 15:39:54 ] ????????
????python????logging????????logging?????????????
def logTest(): import logging import os logger=logging.getLogger() handler=logging.FileHandler(os.path.join(os.getcwd()??"test.log")) formater=logging.Formatter("%(asctime)s %(levelname)s %(message)s") handler.setFormatter(formater) logger.addHandler(handler) logger.setLevel(logging.NOTSET) logger.debug("???????log????") return |
????logging.getLogger()
??????????????????
????logging.FileHandler(logfile)
????????????????????????????????????
????logging.Formatter()
????????????
????setFormatter()
????????????????????????????????????????
????addHandler()
????????????????????????????????????????
????setLevel()
???????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???Java??????????Python??????300??Python?????????y?????????????ж????д???Python???Python???????????????????????????????????pythonС???????python????HP??Quality CenterPython??Anaconda??????????????·??Ubuntu ???????Python??????????μ?????????????????????pythonpython unittest??????????????????Pythonд???NoSQL?????python unittest?????????????????????????Python??JIRA?????JIRAAppium+Python????????????????Python????????????е?????????????????Python??SQLite?????????????????Ч?????????ξ??饗Python?棩
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????