Logging::Log Method

The Log method logs a message with an optional time stamp at a given logging level.

Syntax

public void Log(
  String logMessage,
  Boolean addTimeStamp,
  Int32 loggingLevel
);
Public Sub Log( _
  ByVal logMessage As String, _
  ByVal addTimeStamp As Boolean, _
  ByVal loggingLevel As Int32 _
)
Implements Logging.Log

Parameters

  • logMessage
    The message to log.

  • addTimeStamp
    Whether to include a time stamp.

  • loggingLevel
    The logging level at which the message is written to the log.

Return Value

This method does not return a value.

Remarks

The message is logged only if the loggingLevel is less than or equal to the level set in logging.xml.

Requirements

Product ILM 2007 FP1
Namespace Microsoft.MetadirectoryServices.Logging
Assembly Logging (Logging.dll)
.NET Framework .NET Framework 2.0

See Also

Logging

Send comments about this topic to Microsoft

Build date: 2/16/2009