IUpdateServer.LogMessage(LogLevel, String, params object[])

Logs a message to the software distribution log file.

public void LogMessage(
  LogLevel logLevel,
  String message,
  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 Values

This method has no return values.

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.

See Also

IUpdateServerConfiguration.LogFilePath