See http://scothillier.spaces.live.com/blog/cns!8F5DEA8AEA9E6FBB!236.entry for some helpful code on using a class library for writing to Sharepoint ULS - i.e. the Unified Logging Service.
TraceProvider.RegisterTraceProvider();
TraceProvider.WriteTrace(TraceProvider.TagFromString("XXXX (must be 4 letter tag)"), TraceProvider.StringToSeverity("Exception or Information"), Guid.NewGuid(), "Method Name", "Assembly Name", "Project Name", "Message");
TraceProvider.UnregisterTraceProvider();
Thursday, December 18, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment