如何在Web应用程序中写入日志文件?

编程入门 行业动态 更新时间:2024-10-25 06:24:06
本文介绍了如何在Web应用程序中写入日志文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个Web应用程序,可通过SMSAPI向许多用户发送短信. 我想将有关向其发送短信的所有用户的信息写入日志文件. 示例如果SMS发送给10个用户 然后我要登录10个用户的电话号码. 请帮助..

I have a web application that send sms to many user through SMSAPI. I want to write to Log File the information about all user to whom sms is sent. Example If SMS is send to 10 Users Then I want to log Phone No of 10 Users. Please Help..

推荐答案

我建​​议使用Log4Net. 如何使用log4net [ ^ ] 下面的这篇文章具有要写入文件的web.config设置.看一下 http ://sadi02.wordpress/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/ [ ^ ] I suggest Log4Net.Take a look at this. How to use log4net[^] This below article has the web.config settings to write to file.Take a look sadi02.wordpress/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/[^]

此 [ ^ ]的文章可能会对您有所帮助. This[^] article might help you.

更多推荐

如何在Web应用程序中写入日志文件?

本文发布于:2023-11-11 07:58:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1577821.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   文件   如何在   日志   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!