Quantcast
Channel: RDA Collaboration Team Projects
Viewing all articles
Browse latest Browse all 20

Updated Release: SharePoint BPOS Logging Framework (Apr 13, 2010)

$
0
0
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).

Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>