SharePoint BPOS Logging Framework

Rating: No reviews yet
Downloads: 324
Released: Apr 13, 2010
Updated: Apr 13, 2010 by pgazmuri
Dev status: Beta Help Icon

Recommended Download

Source Code RDA.SharePoint.Logging.zip
source code, 443K, uploaded Apr 13, 2010 - 324 downloads

Release Notes

RDA's SharePoint BPOS logging framework is a very lightweight WSP Builder project that provides the following items:
  • A Site feature that creates an Event Log List within the site where it is activated
  • A function call that writes log entries to the windows event log, as well as the event log list of the current site and the event log list in the root site of the web application.

To use the logging framework, simply build the WSP and install on your server, then:
  1. Activate the "RDA Site Event Log" feature in the root web of your web application. You may also wish to enable this feature within any webs that host your application if you wish to see log entries local to that particular web.
  2. Reference the dll in your own projects, and call one of the following methods to log an event:
  • RDA.SharePoint.Logging.SharePointLog.LogEvent(SPWeb contextWeb, EventLogEntryType type, string applicationName, string operation, int errorCode, string errorMessage, string userData)
    • (For when you have a specific Code and Message)
  • RDA.SharePoint.Logging.SharePointLog.LogEvent(SPWeb contextWeb, EventLogEntryType type, string applicationName, string operation, Exception ex, string userData)
    • (For when you are reporting an exception)

This solution is recommended for use with Microsoft-hosted BPOS SharePoint solutions, as it writes to both the event log and a sharepoint list (allowing for easy retrieval of log data off-premise) and allows you to specify error codes (allowing for automated alerts and troubleshooting by MSO staff).

Reviews for this release

No reviews yet for this release.