SPUsageSettings.LogFilesDirectory property

NOTE: This API is now obsolete.

The location where usage analysis log files are created.

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPUsageManager instead.", False)> _
Public Property LogFilesDirectory As String
    Get
    Set
'Usage
Dim instance As SPUsageSettings
Dim value As String

value = instance.LogFilesDirectory

instance.LogFilesDirectory = value
[ObsoleteAttribute("Use SPUsageManager instead.", false)]
public string LogFilesDirectory { get; set; }

Property value

Type: System.String
A String representation of the URL (directory) where log files are created.

Remarks

Setting the LogFilesDirectory property requires calling the Update method for changes to take effect in the database. Also after the log file directory is changed through use of this property the correct permissions must be set on the directory (if not already set) for logging and usage to work. This action replicates permissions from the default log directory within the new log directory. This property returns a system [ArgumentException] exception if the directory name is invalid (for example a file already exists by the same name) or if SharePoint Services does not have permissions to gain access to the location.

See also

Reference

SPUsageSettings class

SPUsageSettings members

Microsoft.SharePoint.Administration namespace