How to enable tracing for the Microsoft Dynamics CRM E-mail Router

Applies to: Dynamics CRM 4.0Microsoft Dynamics CRM 2011

Symptoms


How to enable tracing for the Microsoft Dynamics CRM 2011 E-mail Router.

More Information


You can update the Microsoft Dynamics CRM E-mail Router service to enable tracing. To do this, you must modify the registry and XML service configurations.

To enable verbose operations log level, you must manually update the configuration by updating the registry. To do this, follow these steps:
  1. Log on to the server where the Microsoft CRM E-mail Router is installed by using local administrator permissions.
  2. Click Start, click Run, type regedit, and then click OK.
  3. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSCRMEmail
  4. Right-click the LogLevel registry entry, click Modify, and then change the value to 3. By default, this value is set to 1.
  5. Update the Microsoft.Crm.Tools.EmailAgent.xml configuration file for the E-mail Router Service. To do this, follow these steps:
    1. In Windows Explorer, locate the Microsoft.Crm.Tools.EmailAgent.xml file. By default, this file is located in the following folder: SystemDrive:\Program Files\Microsoft CRM Email\Service
    2. Open the file by using Notepad or another text-editing program.
    3. In the file, examine the <SystemConfiguration> node, and then scroll down the text toward the end of the file to find the following statement: <LogLevel>1</LogLevel>By default, this value is set to 1 (one). Modify this statement so that it reads as follows: <LogLevel>3</LogLevel>
    4. Save the file.
    5. Restart the E-mail Router Service. You will find a new Event Viewer log view that is named MSCRMEmailLog. It is in this Event Viewer log view that the events appear.