ASP. NET Log component LogNet.DLL reference to write log and read log

Source: Internet
Author: User

With the Lognet component, you can view the site log later without having to go to the server to download

Log component: LogNet.DLL, reference can be used

Write Method:

1, LogNet.Log.WriteLog (" log title " " log content ");
2, LogNet.Log.WriteLog (" log title ",new Exception ());

Log contents are written in three text files at the same date.

Site Read method:

Copy the readlognet.aspx file to the site, the WebForm and MVC sites are the same, the filenames are customizable, and if you already have a log, open to view the log.

You can set the log view password, add the node under the appsettings node of Web. config lognet_log_loginpwd Add the view password value

If placed at the site root, the log page: http://localhost/ReadLogNet.aspx

: Lognet v1.0.0.0

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.