我应该在应用程序日志包含理想? [英] What should an Application Log ideally contain?

查看:94
本文介绍了我应该在应用程序日志包含理想?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么样的信息应的应用程序日志包含理想?它是如何从不同的错误日志?

What kind of information should an Application Log ideally contain? How is it different from Error Log?

推荐答案

您会得到很多不同的意见,这个问题....

You are going to get a lot of different opinions for this question.....

最终它应该包含您认为将是应用程序相关的任何信息。它也应该包含的信息将帮助你确定是什么原因与应用程序发生。这并不是说,它应该包含错误,但可能如果你想用这种方式

Ultimately it should contain any information that you think is going to be relevant to your application. It should also contain information that will help you determine what is happening with the application. That is not to say it should contain errors, but could if you wanted to use it that way.

至少我会建议你包括:


  • 应用程序启动/停止时间

  • 应用程序名

  • 通过/失败信息(如适用)

可选项目是:


  • 呼叫处理(如果不是过于密集)

  • 错误,如果你决定应用程序和错误日志

  • 通讯相结合(如果不是太密集)

要记住的一件事是,你不想被写了这么多的信息,你的日志,你影响应用程序的性能。此外,要确保你不增加你的日志文件,如此之大,你运行的磁盘空间不足。

One thing you want to keep in mind is that you do not want to be writing so much information to your logs that you impact your application performance. Also, want to make sure you don't grow your log files so large that you run out of disk space.

这篇关于我应该在应用程序日志包含理想?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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