Overview of ULS – Unified Logging Service


In SharePoint Foundation, ULS exposes configurable settings in two ways, through the:

  • object model
  • Windows PowerShell cmdlets

** Object Model — In SharePoint Foundation 2010 it is recommended that you use the SPDiagnosticsServiceBase to access ULS logs, specifically the WriteTrace() and WriteEvent() methods. SPDiagnosticsServiceBase class wraps all calls to the IDiagnosticsManager class.


Write to Trace Log

using Microsoft.SharePoint.Administration;

WriteTrace(System.UInt32, Microsoft.SharePoint.Administration.SPDiagnosticsCategory, Microsoft.SharePoint.Administration.TraceSeverity, System.String, System.Object[]);

Write to Event Log

using Microsoft.SharePoint.Administration;


Windows powershell –



Retrieves Diagnostic Configuration values.

Diagnostic Configuration


Allows setting Diagnostic Configuration values.

Diagnostic Configuration


Returns IDiagnosticsLevel2 objects or displays a list of diagnostics levels.

Trace Log and Event Log Throttling


Allows the user to set the trace and event level for a set of categories.

Trace Log and Event Log Throttling


Resets the trace and event levels back to their default values.

Trace Log and Event Log Throttling


Ends the current log file and starts a new one.

Log File Control


Reads/queries ULS trace logs.

Trace Log Querying and Filtering


Combines trace log files from all farm servers into a single file.

Trace Log Merging

Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: