If you have a rules extension, it may be useful to utilize logging. You can create a log file for a rules extension by adding the \Program Files\Microsoft Forefront Identity Manager\2010\Synchronization Service\Extensions\Logging.dll
reference to your Management Agent project:
Then, within your rules extension code, add a logging event similar to this:
Logging.Log("Error in account: " + csentry.DN.ToString(), True, 2)
The three parameters are as follows:
Logging.Log(logMessage, addTimeStamp, loggingLevel)
Here is what they mean:
logMessage
: This is a string message to write to the log. In the preceding example, we concatenate a custom string with a string value of the connector space's DN.addTimeStamp
: This is a Boolean value that determines whether a time stamp should be included.loggingLevel
: This is the logging level at which the message is written to the log. The log file entry is only written ifloggingLevel
is equal to or greater than the value set in thelogging...