SPDiagnosticsServiceBase.SetAll method (TraceSeverity)

Sets the threshold at which traces associated with all categories are written to the trace log.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void SetAll(
	TraceSeverity traceSeverity
)

Parameters

traceSeverity
Type: Microsoft.SharePoint.Administration.TraceSeverity

A TraceSeverity value that represents the least important event to report to the trace log.

ExceptionCondition
ArgumentOutOfRangeException

Thrown when traceSeverity is unmapped or out of range.

Use this method to control the severity of all events captured in trace logs. At less severe logging levels, the number of events logged will increase.

Show: