如何在ASP.Net中使用IIS生成日志文件 [英] How to generate a Log File using IIS in ASP.Net

查看:69
本文介绍了如何在ASP.Net中使用IIS生成日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有人能解释如何使用IIS生成日志文件吗?



大多数情况下,日志文件都是以txt格式生成的,我已经使用过了,现在,如果我想从前端本身来改进它,则管理员本身就想查看日志文件,则应该通过在ASP中使用IIS来生成日志文件. Net.

Hi,


Did anybody can able to explain, how to generate a log file using IIS?



Mostly the log file generating in txt format, i have already using that, at now if i want to improve that from front end itself the admin person alone want to view the Log file, the log file should be generated by using IIS in ASP.Net.

推荐答案

对于 log4Net :
如何使用log4net [ Log4Net C#.net [此处 [日志记录应用程序块"简介 [记录应用程序块"入门 [此讨论 [ ^ ]来区分并详细说明它们的优点.

最后但并非最不重要的一点是,IIS只是一个促进者.您的代码就是将要记录的代码.
For log4Net:
How to use log4net[^]
Log4Net Tutorial in C# .net [^]

If needed, look here[^] for more.


For Microsoft Enterprise Library - Logging Application block:
Introduction to the Logging Application Block[^]
Getting started with the Logging Application Block[^]


While providing you the link, came across this discussion[^] that differentiates and tells the advantages of them in detail.

Last but not the least, IIS is just a facilitator. Your code is the one that will log things.


看看 ^ ] msdn文章.
Have a look at this[^] msdn article.


这篇关于如何在ASP.Net中使用IIS生成日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆