.Net Logger (Write your own vs log4net/enterprise

2019-03-16 03:00发布

I work for an IT department with about 50+ developers. It used to be about 100+ developers but was cut because of the recession.

When our department was bigger there was an ambitious effort made to set up a special architecture group.

One thing this group decided to do was create our own internal logger. They thought it was such a simple task that we could spend recources and do it ourselves. Now we are having issues with performance and difficulty viewing the logs generated and some employees are frustrated that we are spending recources on infrastructure stuff like this instead of focusing on serving our business and using stuff that already exists like log4net or Enterprise Logger.

Can you assist me in listing up reasons why you should not create your own .net logger.

Also reasons for why you should are welcome to get a fair point of view :)

标签: c# .net logging
7条回答
贼婆χ
2楼-- · 2019-03-16 03:37

I would take a different approach. How about first introducing a common interface to your own library such as Common Infrastructure Libraries (http://netcommon.sourceforge.net/). Then you can gradually move all projects over to that interface and if your own library is not up to the job for large projects then simply switch over to one of the open source frameworks (or even a commercial solution).

HTH Alex

查看更多
登录 后发表回答