Logging Framework?

Posts   
 
    
psandler
User
Posts: 540
Joined: 22-Feb-2005
# Posted on: 21-Oct-2007 21:43:43   

All,

I was wondering what you all use for logging in your applications?

I'm looking for a tool that does some kind of AOP to log the start and end of methods as they happen. Ideally it would be configurable at a very fine-grained level via config files.

Logging to a text file would probably be sufficient, but being able to swap between database/textfile/xml would be even better.

Any thoughts?

Thanks,

Phil

ggpnet
User
Posts: 21
Joined: 07-Apr-2005
# Posted on: 22-Oct-2007 11:25:51   

Hi Phil,

you can check these links

log4net from Apache Software Foundation

http://logging.apache.org/log4net/index.html

and NLog

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

I haven't an opinion about these products because I don't use them, but I think they deserve a check out.

I hope this help.

Gianfranco

jmeckley
User
Posts: 403
Joined: 05-Jul-2006
# Posted on: 22-Oct-2007 19:32:36   

MS Ent Lib Exception & Logging blocks also work well together. I use this. the Logging block can be configured to log to email, msmq, text file & database. the 1 down side is all the configs side in the app/web.config. would be nice if they resided outside the config so the app doesn't restart when configs are changed. if you don't plan on changing the configs often then it isn't an issue. just makes for a crowed config file.

tangent
User
Posts: 41
Joined: 30-Apr-2006
# Posted on: 23-Oct-2007 16:24:00   

PostSharp (with NLog or log4net)

fpw2377
User
Posts: 35
Joined: 23-Feb-2007
# Posted on: 23-Oct-2007 16:26:34   

I have used NSpring, I like it because it is simple and flexible. The MS App block for logging was way too much for my app, I felt like it would have taken more time to set that up than writing the whole app.

http://www.codeproject.com/csharp/nspring.asp