SPDiagnosticsService.Provision Method
Makes the necessary changes to the local server to use the SPDiagnosticsService object.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
Public Overrides Sub Provision
Dim instance As SPDiagnosticsService
instance.Provision()
public override void Provision()
Remarks
This method creates a directory for log files on the local server if one does not exist, and it sets appropriate security permissions on the directory. It also stores the current configuration of the service in the local registry.