Microsoft Identity Integration Server 2003 Developer Reference

Logging Extension Messages

One common debugging technique is to log information in a file. Writing to a log file is most useful when real-time data is not needed or when many iterations are expected. The Microsoft Identity Integration Server 2003 includes a file, logging.xml, and one class, Logging, that control logging information.

Using the Logging Definition File

The logging.xml file contains entries that you can use to specify how logging works:

Using the Logging Class

The Logging class contains a number of static methods that you can use to log messages:

Creating a Reference to the Logging Assembly

Before you can use the Logging class you must create a reference to the assembly containing the code. The assembly is Logging.dll, which is located in the Extensions directory. If you want to avoid the fully qualified class name, you should put an import statement in your source file. For Visual Basic .NET, use imports Microsoft.MetadirectoryServices.Logging. For Visual C# .NET, use using Microsoft.MetadirectoryServices.Logging.