Skip to content

Instantly share code, notes, and snippets.

@premsh
Last active December 15, 2015 19:59
Show Gist options
  • Save premsh/5315061 to your computer and use it in GitHub Desktop.
Save premsh/5315061 to your computer and use it in GitHub Desktop.
SharePoint Logging
SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory("Name", TraceSeverity.High, EventSeverity.Error), TraceSeverity.Unexpected, "error message", ex.StackTrace);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment