Comercial logger

M

Mirs

I want to add a logger to my C# application. I prefer to use a ready library
instead of using my own text file.
Is there some public/commercial libraries that make the job?
Regards
Mirs
 
I

Ignacio Machin ( .NET/ C# MVP )

I want to add a logger to my C# application. I prefer to use a ready library
instead of using my own text file.
Is there some public/commercial libraries that make the job?
Regards
Mirs

log4net is very popular
 
P

Peter

Mirs said:
Thanks all,
Making some inspection in CodeProject I've came across Nlog
(http://www.codeproject.com/KB/trace/nlog.aspx) which seems to be
very powerful. Is it recommended also by programmers here? Regards
Mirs

I have never used NLog - but I've used log4net a lot, and have found it
very good and easy to use. I have also used enterprise library logging
application block, and I don't really like it (I prefer the simplicity
of log4net).

But take a look at Common.Logging for .net - here you use a common
interface to logging from your program, and at deploy/configuration
time you specify exactly what logging provider to use. This could be
log4net, enterprise library, or nlog.

/Peter
 
S

Stefan Hoffmann

hi Peter,
But take a look at Common.Logging for .net - here you use a common
interface to logging from your program, and at deploy/configuration
time you specify exactly what logging provider to use. This could be
The delayed parameter evaluation by using lambdas is pretty cool:

log.Debug(m => m("value= {0}", obj.Value));



mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top