ASP read the IIS Log applet code

Source: Internet
Author: User

ASP reads the IIS log file code, which you can write to implement an IIS log browsing program, can read the IIS log access time, client IP, request target, protocol status, etc., if you want to read more log content, You can refer to a series of methods of the Mswc.iislog object in ASP, this code only shows that if you create a log-read object, you will be able to list every piece of the log in the final form, which is convenient for webmasters to refer to.

Directly save the above code for an ASP file, run on the line, for testing convenience, here is a test of the IIS log file code:

Please save the above log code as: Ex130215.log, note that this file name is not wrong, because the code called the IIS log file is the name, if not the name, the code should be changed.

Related Article

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.