Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Logs a message to the software distribution log file.
public void LogMessage(LogLevellogLevel,
Stringmessage,
params object[]args);
Public Sub LogMessage( _
ByVal logLevel As LogLevel, _
ByVal message As String, _
ByVal args As params object[] _
)
Implements IUpdateServer.LogMessage
Parameters
- logLevel
Logging level to use. For possible values, see LogLevel. - message
Message string to log. - args
Arguments to insert into message.
Return Value
This method does not return a value.
Remarks
This method calls String.Format to format the message string. For details on specifying values for message and args, see String.Format Method (String, Object[]).
The default log file is "%programfiles%\Microsoft Windows Update Services\LogFiles\SoftwareDistribution.log". To specify a different log file, see IUpdateServerConfiguration.LogFilePath.
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. |