Python 我无法使用PyCharm中的Ideolog插件在日志文件中突出显示模式
我的日志文件中有以下几行Python 我无法使用PyCharm中的Ideolog插件在日志文件中突出显示模式,python,logging,pycharm,python-logging,Python,Logging,Pycharm,Python Logging,我的日志文件中有以下几行 [18-09-2020-13:29:03:165 INFO] clicking on Gmail link on Google Home Page [18-09-2020-13:29:05:297 DEBUG] Test_demo1.py:22:test_tc1: googlePage.py:13:func1: webActions.py:83:clickOnElement: => clicked on element : //a[text()='Gmail']
[18-09-2020-13:29:03:165 INFO] clicking on Gmail link on Google Home Page
[18-09-2020-13:29:05:297 DEBUG] Test_demo1.py:22:test_tc1: googlePage.py:13:func1: webActions.py:83:clickOnElement: => clicked on element : //a[text()='Gmail']
[18-09-2020-13:29:05:309 INFO] clicking on Sign in link on Gmail Home Page
[18-09-2020-13:29:07:562 DEBUG] Test_demo1.py:22:test_tc1: googlePage.py:19:func1: webActions.py:96:waitAndSendKeysOnElement: => entered text in element : //input[@id='identifierId']
[18-09-2020-13:29:07:642 DEBUG] Test_demo1.py:22:test_tc1: googlePage.py:20:func1: webActions.py:83:clickOnElement: => clicked on element : //div[@id='identifierNext']
[18-09-2020-13:29:18:059 ERROR] Exception occured in => Test_demo1.py:22:test_tc1: googlePage.py:21:func1: webActions.py:100:waitAndSendKeysOnElement:
[18-09-2020-13:29:18:060 ERROR] Unable to enter text in element : //input[@type='password']
[18-09-2020-13:29:18:061 ERROR] TimeoutException : Message:
我在PyCharm中添加了Ideolog插件,并使用下面的
消息模式[\d{2}-\d{2}-\d{4}-\d{2}:\d{2}:\d{2}:\d{3}\s([A-Z]{4,8})]\s(.*$
消息开始模式^\[
时间格式d-m-Y-H:m:S
时间捕获组0
严重性捕获组0
类别捕获组0
图案
^\s*E(错误)?\s*$
->突出显示线(前景,#FF0000)
^\s*W(ARN(ING)?\s*$
->突出显示线(前景,#FFAA00)
^\s*I(NFO)?\s*$
->突出显示线(前景,#3FBF3F)
我仍然无法获取日志文件中突出显示的信息和错误声明
[18-09-2020-13:29:03:165 INFO] clicking on Gmail link on Google Home Page
[18-09-2020-13:29:05:297 DEBUG] Test_demo1.py:22:test_tc1: googlePage.py:13:func1: webActions.py:83:clickOnElement: => clicked on element : //a[text()='Gmail']
[18-09-2020-13:29:05:309 INFO] clicking on Sign in link on Gmail Home Page
[18-09-2020-13:29:07:562 DEBUG] Test_demo1.py:22:test_tc1: googlePage.py:19:func1: webActions.py:96:waitAndSendKeysOnElement: => entered text in element : //input[@id='identifierId']
[18-09-2020-13:29:07:642 DEBUG] Test_demo1.py:22:test_tc1: googlePage.py:20:func1: webActions.py:83:clickOnElement: => clicked on element : //div[@id='identifierNext']
[18-09-2020-13:29:18:059 ERROR] Exception occured in => Test_demo1.py:22:test_tc1: googlePage.py:21:func1: webActions.py:100:waitAndSendKeysOnElement:
[18-09-2020-13:29:18:060 ERROR] Unable to enter text in element : //input[@type='password']
[18-09-2020-13:29:18:061 ERROR] TimeoutException : Message:
有人能告诉我如何正确配置消息模式以匹配我的日志文件,以及如何突出显示它吗
谢谢