Partager via


Logging

The Logging class provides logging capability. This class has static methods that you can use to create log messages.

Note  You can use this class only in a rules extension because this class uses other rules extension classes.

The Logging class is derived from the System.Object class.

Public Methods

The Logging class has the following public methods.

Method Description
Log

Logs a message with an optional time stamp at a given logging level.

LogException(Exception, String, CSEntry, Boolean)

Logs an exception with information about the calling method, entry in the connector space, and whether the exception was caught and handled.

LogException(Exception, String, String, Boolean)

Logs an exception with information about the calling method, when the exception occurred, and whether the exception was caught and handled.

SetupLogFile

Overrides the file-name and logging-level entries 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 Rules Extension Messages

Send comments about this topic to Microsoft

Build date: 2/16/2009