Skip to content

Instantly share code, notes, and snippets.

@hadoan
Created January 9, 2014 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadoan/8331204 to your computer and use it in GitHub Desktop.
Save hadoan/8331204 to your computer and use it in GitHub Desktop.
Log to ULS
SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory("My Category", TraceSeverity.Unexpected, EventSeverity.Error), TraceSeverity.Unexpected, ex.Message, ex.StackTrace);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment