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)

Syntax

'Declaration
Public Sub SetAll ( _
    traceSeverity As TraceSeverity _
)
'Usage
Dim instance As SPDiagnosticsServiceBase
Dim traceSeverity As TraceSeverity

instance.SetAll(traceSeverity)
public void SetAll(
    TraceSeverity traceSeverity
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

Thrown when traceSeverity is unmapped or out of range.

Remarks

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.

See also

Reference

SPDiagnosticsServiceBase class

SPDiagnosticsServiceBase members

SetAll overload

Microsoft.SharePoint.Administration namespace

ResetAll()