Use Python to implement scan log keywords! Python is really omnipotent!

Source: Internet
Author: User

We collect a lot of logs during the stress test, how can we find useful information quickly? Let the Python script do this part of the work for us!

Nonsense don't say that on the code

Environment: Win10 + python2.7.14

counttime.py

Keywords and scanned log path information, recorded in a file, separated by a comma + space, such as, "," Log path information is put to the end. The format is as follows:

ANR, dalvikvm:could not find class ' android.app.usage, Panic, C:\Users\BHJ\logcat1.log

Execution Result:

You are welcome to follow my blog: https://home.cnblogs.com/u/sm123456/

Welcome to join thousands of people Exchange resource sharing group: 125240963

Use Python to implement scan log keywords! Python is really omnipotent!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.