.NET logging framework [closed]

2020-01-28 02:39发布

In java world you have log4j and a a pretty decent logging framework, is there anything like that for C#/.NET?

标签: c# logging
16条回答
趁早两清
2楼-- · 2020-01-28 02:45

If you are looking for a simple non-bloat solution (the download is only about 100K and the actual dll about 40K), I've successfully used BitFactory on a number of projects.

It's small, configurable, reliable and free!

查看更多
贪生不怕死
3楼-- · 2020-01-28 02:45

As I've said in a few other places, I agree with others here about The Object Guy's Logging Framework. Like Developer Dude says, it isn't bloated -- like some other frameworks out there. It works in all our production applications--and has been doing so for several years now.

查看更多
成全新的幸福
4楼-- · 2020-01-28 02:45

James Newton-King covered log4net vs. Enterprise Library Logging about a year ago, and I think it's still largely up to date. My experience has been with EL only, and it's had ups and downs. It's a lot of configuration in a multi-tier application if you don't take advantage of every bell and whistle, so I'll probably try log4net on my next project.

查看更多
Root(大扎)
5楼-- · 2020-01-28 02:51

Yep. Log4Net.

I've been using it for a while, it has been a life saver!

查看更多
三岁会撩人
6楼-- · 2020-01-28 02:52

http://www.nlog-project.org/ - NLog

It's a very flexible and configurable logging tool that's very light-weight. You can set it up to log to many different locations (Console, SQL, File... etc). Very easy to use.

It's even used by Rob Connery in his Storefront MVC project... http://blog.wekeroad.com/mvc-storefront/

查看更多
不美不萌又怎样
7楼-- · 2020-01-28 02:52

Try the Enterprise Library Logging Application Block

Even though I have used a few others mentioned here too - it is worth looking into.

查看更多
登录 后发表回答