C # log4net Output Error row number

Source: Internet
Author: User
Tags log4net

An error is always reported when others call the interface I wrote, but this test is okay. I just want to use log4net to trace it.

After tracking, it is found that there is indeed an error log on the interface, but there is no specific error.

By outputting logs, tracing is not very convenient. You can think about whether log4net can directly output the wrong row number.

According to the information on the Internet, I also tested and verified it. I found that I had to use log4net to directly output the wrong line number. I just needed to put the corresponding PDB file in the directory together.

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.