Share via


SPDiagnosticsService.LogLocation Property

Gets or sets the path to the file system directory where log files are created.

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

Syntax

Public Property LogLocation As String
    Get
    Set

Dim instance As SPDiagnosticsService
Dim value As String

value = instance.LogLocation

instance.LogLocation = value
public string LogLocation { get; set; }

Property Value

Type: System.String
A String with a valid file system path.

Remarks

The location that you specify must exist on all servers in the server farm. The default location for installation of log files is

C:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Logs

See Also

Reference

SPDiagnosticsService Class

SPDiagnosticsService Members

Microsoft.SharePoint.Administration Namespace