ASP.NET应用程序中的函数计时器 [英] Timer for functions in asp.net application

查看:77
本文介绍了ASP.NET应用程序中的函数计时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个功能,可以记录创建的所有错误日志并将其存储(vb.net).我应该通过电子邮件将每个日志发送给发件人.但是最近我一直试图将所有消息合并到一个文件中,并在特定时间(例如一天结束)将其发送出去.伙计们需要一些建议.

Hi guys ,
I have a function that records all error logs created and stores them (vb.net). I am supposed to be sending out each log via email to a sender. But lately I have been trying to club all the messages into one file and send it out at a particular time(say end of the day). Guys need some sugestions.

推荐答案

最好的方法是创建Windows服务

查看此链接并了解更多信息单击此处
The best way is to create a windows service

Check out this link and learn more about it Click Here


如果您已经具有记录数据的功能,则在记录数据之前,先发送该邮件,然后将错误记录在一个文件中.
到了eod,您将拥有一个包含所有详细信息的错误日志文件.
If you already have a function to log a data,before logging the data, send that mail and then log the error in a one single file.
At the eod you will have a single error log file with all details.


这篇关于ASP.NET应用程序中的函数计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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