Coordinating the logging output from a web app installed in a SharePoint farm.

Posted by Kelly French on Stack Overflow See other posts from Stack Overflow or by Kelly French
Published on 2010-04-23T23:49:24Z Indexed on 2010/04/23 23:53 UTC
Read the original article Hit count: 320

We are deploying web parts to SharePoint 2007 and would like to include logging (log4net). The ideal solution would be to use a database appender to avoid the problems with knowing which actual server is executing the web part.

This questions has been helpful: http://stackoverflow.com/questions/219668/sharepoint-and-log4net.

I've got log4net working in a stand-alone web app using Visual Studio dev server using the web.config for the log4net settings and a file appender for the output. I'd like to transition to SharePoint and still use the log file output so I can make sure it's all working first, then change the config around to log to a database.

Is this going to be too much trouble? How have other developers added log4.net into their solutions for SharePoint?

© Stack Overflow or respective owner

Related posts about sharepoint2007

Related posts about log4net