VS log4net的企业库,哪个更好?快点? [英] log4net vs Enterprise Library, which is better? faster?

查看:114
本文介绍了VS log4net的企业库,哪个更好?快点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道最新版本的企业库和log4net的最新版本的一些性能比较?

Anyone know of some performance comparisons of the latest version Enterprise Library and the latest version of log4net?

任何技术原因,我应该选择一个比其他?

Any technical reason why I should choose one over the other?

推荐答案

我最近测试了。这是我的经验:

I tested both recently. This is my experience:

企业库带着这么多的开销,我只会在一个大团队项目中使用它。

Enterprise library came with so much overhead, I would use it only on a project with a large team.

log4net的

优点

  • 更容易使用。
  • 在高水平的灵活性。
  • 易于登录不同类型很少摆位误差的。
  • 在很多对log4net的大博客和教程。
  • 在很多现有的第三方资源,与log4net的集成。
  • 对于不同类型的日志记录
  • 在大pre-构建的解决方案*(内存,数据库,SMTP,本地文件等)*
  • Easier to use.
  • High level of flexibility.
  • Easy to log different types of errors with little set-up.
  • A lot of great blogs and tutorials on Log4Net.
  • A lot of existing 3rd party resources have integration with Log4Net.
  • Great pre-built solutions for different logging types*(Memory, DB, Smtp, Local File, etc..)*

缺点

  • 文档不以简洁的方式解释。我不得不寻找 相当多找到一些基本的功能的描述。 博客是最有用的。
  • 在故障排除的信息更是稀少。我幸运地找到 从菲尔哈克这些重要的资源。
  • Documentation is not explained in a concise manner. I had to search quite a bit to find the description of some basic functions. Blogs were the most useful.
  • Troubleshooting information was even more sparse. I luckily found these great resources from Phil Haack.

log4net的配置为Web应用

故障排除

企业库

优点

  • 非常有据可查的。
  • Microsoft支持。
  • 将继续支持和更新的(log4net的是多还是少 完整,可能只有当净变化在某些更新 ,值得它的方式)
  • 在复杂的配置可以比较容易配置 对于大型项目。
  • Very well documented.
  • Supported by Microsoft.
  • Will continue to be supported and updated (Log4Net is more or less complete and will probably only be updated if .Net changes in some way that warrants it)
  • Complex configurations can be somewhat easier to configure for large projects.

缺点

  • 在陡峭的学习曲线。
  • 添加更多的依赖关系到项目中。
  • 具有较高的性能开销。 (这是如果尤为重要 你写,有建在每次调用对象的一项服务。)
  • 在没有那么多pre-构建的解决方案,以不同类型的 日志*(内存,数据库,SMTP等)*
  • Steeper learning curve.
  • Adds more dependencies to your project.
  • Has a higher performance cost. (This is particularly important if you are writing a service that has to build objects on every call.)
  • Not as many pre-built solutions to different types of logging*(Memory, db, smtp, etc..)*

这篇关于VS log4net的企业库,哪个更好?快点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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