Log4Next vs Enterprise Library Log AppBlock

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am coupling an object for logging in our app...
Ive seen Log4Next is indeed a good choice, besides being free...
On the other hand, there seems to be a proven platform for log avaliable in
EntLibrary App Block.

Any suggestions, opinions or ideas what could be a better choice (other
providers may be acceppted hehe)..

Tanks!!!
 
Bruce said:
I am coupling an object for logging in our app...
Ive seen Log4Next is indeed a good choice, besides being free...
On the other hand, there seems to be a proven platform for log avaliable in
EntLibrary App Block.

Any suggestions, opinions or ideas what could be a better choice (other
providers may be acceppted hehe)..

There is also NLog: http://www.nlog-project.org/. Its free even for
commercial purposes, easily configurable (unlike log4net, IMHO) and very
performant. Definitely worth giving it a try.

Best regards!
Marcin
 
Marcin said:
There is also NLog: http://www.nlog-project.org/. Its free even for
commercial purposes, easily configurable (unlike log4net, IMHO) and very
performant. Definitely worth giving it a try.

Best regards!
Marcin

I have had huge succes with Log4Net and the performance is amazing. I'm
using it in a Winforms app that performs realtime communications with
remote embedded devices and it's been flawless. Log4Net is extremely
flexible which - as Marcin has pointed out - makes the learning curve a
little steaper than necessary and the configuration can be daunting if
you don't understand the object model. That said, the documentation is
getting better everyday and the contributors are really good about
responding to posts on the mail list. I've yet to post a question that
didn't get an answer - and I've had some tough questions. Log4Net is
also free to embed in commercial apps.

I don't have much experience with the other two loggers mentioned
(other than initial investigation) but once I figured out how to
configure l4n the way I wanted, I never looked back. For me I look at
it this way: Performance + Flexiblity + Great Support + FREE = Winner!

Cheers
Dinsdale
 
Well Log4Net is surely better than EntLibrary, as I could notice in all of
the sites Ive been to...people range from hating to being neutral concerning
EntLibrary Log...
But...I am kind of confused now, since NLog (which is based on Log4Net)
seems to fulfill all needs and looks easier to configure and start using, as
well as to mantain...both Log4Net and NLog seem to be equally performatic as
well...
 
Bruce said:
Why is it better than Log4Net and EntLibrary?

Well, it is easier to configure than log4net. The author claims that it
performs more or less like log4net.

As for EntLib, I came across an opinion that the purpose of this library
is somewhat different. It is aimed at writing log messages about
unexpected or unusual events (usually with low frequency) to targets
like Event Log, which doesn't really put big requirements on
performance. Log4net and NLog are meant to log *trace* of the
application, that is, write down everything an application does. That
can be really lots of data sometimes and this puts big requirements on
performance and flexibility.

Best regards!
Marcin
 
Bruce said:
Well Log4Net is surely better than EntLibrary, as I could notice in all of
the sites Ive been to...people range from hating to being neutral concerning
EntLibrary Log...
But...I am kind of confused now, since NLog (which is based on Log4Net)
seems to fulfill all needs and looks easier to configure and start using, as
well as to mantain...both Log4Net and NLog seem to be equally performatic as
well...


I guess you've made your decision then. :)

Cheers
Dinsdale
 
Bruce said:
NLog (which is based on Log4Net)

One more thing: this is not exactly true. NLog and log4net don't share
even a single line of code!

Best regards!
Marcin
 
Back
Top