Thursday, December 18, 2008

Writing to the SharePoint Unified Logging Service

See!8F5DEA8AEA9E6FBB!236.entry for some helpful code on using a class library for writing to Sharepoint ULS - i.e. the Unified Logging Service.

TraceProvider.WriteTrace(TraceProvider.TagFromString("XXXX (must be 4 letter tag)"), TraceProvider.StringToSeverity("Exception or Information"), Guid.NewGuid(), "Method Name", "Assembly Name", "Project Name", "Message");

No comments:

Post a Comment