Below you will find pages that utilize the taxonomy term “ULS”
Posts
Log to ULS using javascript
The more javascript code is produced in SharePoint solutions, the more need we have to log information and possible errors to a central logging place in SharePoint: ULS. This blog post is about logging to ULS from javascript. For a while ago I read a blog post:
5 suggestions to implement a better logging in SharePoint The author @avishnyakov mentions the ability log to ULS from javascript. I want to dive deeper.
Posts
A simple Log for ULS
Do an unsafe update in a unified manner « Sharepoint. Kunskap. Upptäckter på resan. - Sep 3, 2011
[…] Log class is my own class which I presented in my previous post. Like this:GillaBli först att gilla denna […]
Posts
A simple Log for ULS
Here is a simple log which has been inspired of Android Log. It logs to ULS which you can open with ULSViewer, SharePoint Log Viewer.
using System; using Microsoft.SharePoint.Administration; namespace Contoso.Intranet.Portal.Utilities { public class Log { private static readonly string \_CATEGORYNAME = "CONTOSO"; private static readonly SPDiagnosticsCategory \_ERROR\_CATEGORY = new SPDiagnosticsCategory(\_CATEGORYNAME, TraceSeverity.Unexpected, EventSeverity.Error); private static readonly SPDiagnosticsCategory \_WARNING\_CATEGORY = new SPDiagnosticsCategory(\_CATEGORYNAME, TraceSeverity.High, EventSeverity.Warning); private static readonly SPDiagnosticsCategory \_VERBOSE\_CATEGORY = new SPDiagnosticsCategory(\_CATEGORYNAME, TraceSeverity.