IUpdateServerConfiguration.LogFilePath
Retrieves or sets the path of the log file.
public String LogFilePath {get; set;}
Public Property LogFilePath As String
Property Value
Absolute local path of the log file. The path can include environment variables and all folders in the path must exist and have write permission. The path must include a file name.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentNullException | The property value cannot be null. |
System.ArgumentOutOfRangeException | The path must be less than 256 characters. |
Remarks
The default log file is "%programfiles%\Microsoft Windows Update Services\LogFiles\SoftwareDistribution.log".
The log file is a text file. New messages append to the log file until the log file reaches 20MB (maximum log file size). When the log file reaches its maximum size, WSUS moves the current log file to <logfilename>.log.old (for example, SoftwareDistribution.log.old), replacing any previous .old file and starts a new file.
Requirements
Server | Requires Windows Server 2003 or Windows 2000 Server SP4 and later. |
Namespace | Defined in Microsoft.UpdateServices.Administration. |
Assembly | Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll). |
.NET Framework | Requires .NET Framework 1.1. |
See Also
IUpdateServerConfiguration.LogDestinations
IUpdateServerConfiguration.LogLevel