登录Web应用 [英] logging for web application

查看:114
本文介绍了登录Web应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用asp.net(形式,如果它是任何权益)建立一个pretty大工地的中间,我想知道如果我需要一个日志框架,例如log4net的。
我以前用过这样的框架,但我不看我怎么可以把它给任何使用这种类型的项目。
我觉得通常需要记录客户交付的应用程序,在那里日志可以发送回去,然后分析错误。
你觉得呢?


解决方案

当然没有 - 日志记录的难以置信的Web应用程序的重要。如果你登录正确,它使故障排除的这样的容易多了。

log4net的可能是一个不错的选择,作为一个框架。您可能还需要收集的方式,从多台服务器一起记录 - 即使你没有在此刻使用多台服务器,它可能是值得暗示你会在某个时候这样做的。

有关集权的一种选择是将日志复制到数据库中 - 请参见这个问题了解在这一方面更多的意见<。 / p>

I'm in the middle of building a pretty big site using asp.net (forms if it's of any interest), and I'm wondering if i need a logging framework such as log4net. I've used such frameworks before, but i don't see how i could put it to any use in this type of project. usually i think logging is needed for customer delivered application, where the log could be sent back and then analyzed for errors. what do you think?

解决方案

Heck no - logging is incredibly important for web applications. If you log appropriately, it makes troubleshooting so much easier.

Log4Net is probably a good bet as a framework. You might also want a way of gathering logs together from multiple servers - and even if you don't use more than one server at the moment, it's probably worth suggesting that you will do so at some point.

One option for the centralisation is to copy the logs into a database - see this question for more opinions on that front.

这篇关于登录Web应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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