log4net的和ELMAH之间的区别是什么? [英] What is the difference between log4net and elmah?

查看:417
本文介绍了log4net的和ELMAH之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有些人使用 ELMAH 代替log4net的,让他更好?

Some people are using elmah instead of log4net, what makes it better?

我发现了约ELMAH这里 - 如何做好记录在C# ?

I found out about elmah here - How to do logging in c#?

推荐答案

ELMAH提供跟踪错误和异常的Web应用程序的目的,让您轻松记录或查看通过多种不同机制(SQL,RSS,微博这些例外,文件,电子邮件等)。如果您没有内置的异常处理ELMAH将最有可能得到你所期待的在异常处理方面的网络应用环境。

Elmah serves a purpose of tracking errors and exceptions for your web applications and allows you to easily log or view those exceptions via many different mechanisms (sql, rss, twitter, files, email, etc). If you have no built in exception handling Elmah will most likely get you what you are looking for in terms of exception handling in a web application environment.

log4net的可以用于异常记录为好,但您可能需要推出自己的处理程序插入到你的Web应用程序。 log4net的将照耀ELMAH如果你需要做其他类型的信息记录为log4net的是一个通用的日志框架。 log4net的,也可以在几乎任何达网络应用使用。

Log4net can be used for exception logging as well, however you might need to roll your own handlers to plug into your web application. Log4net will shine over Elmah if you need to do other types of information logging as log4net is a general purpose logging framework. Log4net can also be used in almost any .net application.

这篇关于log4net的和ELMAH之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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