SPDiagnosticsServiceBase.SetAll method (EventSeverity)

Sets the threshold at which events associated with all categories are written to the event log.

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

public void SetAll(
	EventSeverity eventSeverity
)

Parameters

eventSeverity
Type: Microsoft.SharePoint.Administration.EventSeverity

An EventSeverity value that represents the least important event to report to the event log.

ExceptionCondition
ArgumentOutOfRangeException

Thrown when eventSeverity is unmapped or out of range.

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

Show: