Translate this site using Windows Live Translator:
Welcome to MSDN Blogs Sign in | Join | Help

How to implement Logging for the Microsoft CRM 4.0 E-mail Connector

Hi all,

 

Here you’ll not get a tool for once but instructions and demo about how to implement tracing for our Microsoft CRM 4.0 E-Mail connector.

In CRM 3.0 we were using Registry Keys to do this but there was not a lot of granularity, we could only trace or not the whole service activity.

Here you will see we can now use regular event log or custom log file, we can set different level of tracing AND we can set the tracing separately for each E-Mail Provider (Like tracing Pop3, tracing SMTP out, tracing SMTP In, etc…..)

 

To do this you simply need now to modify the XML Configuration file of the Microsoft CRM 4.0 E-Mail Connector.

For the whole explanation and a demo, have a look at the video bellow:

CLICK Here for Full-Screen

 

Here is what you need to remember from the presentation :

 

<LogLevel>

Description

-1

Use default settings.(Inherits from <SystemConfiguration> node)

0

None.

1

Normal (typically errors only).

2

Medium (advanced processing information down to the mailbox level).

3

High (advanced processing information down to the message level).

 

 

<LogFile>

Description

C:\MyLog.txt

If you specify this tag, logging information will be written into a Log file you specify. (Ex: <LogFile>C:\MyLog.txt</LogFile>)

Tag Does Not Exist

If you don’t add this tag, the event will be recorded into the regular Windows Appplication Log.(Source: « MSCRMEmail »)

 

 

<ConfigUpdatePeriod>

This tag has to be set to ZERO while you are debugging (while you are activation the logging)

 

In Addition, here are some precisions about the different sections of the XML configuration file.

If you need to troubleshoot INCOMING Email issue, you need to set the Logging here:

 

Incoming Email Issue 

 

The providerClass is ExchangePollingMailboxProvider (or Pop3PollingMailboxProvider) there is ONE node of this kind for every User or Queue you have in CRM.

There is probably many of these in your file. you need to add the Logging here for your specific user you are troubleshooting.

 

For OUTGOING Email issues, you need to add the Logging here:

 

Send Email Issues

 

The provider has to be SmtpPollingSendEmailProvider. There will be only ONE section of this kind by deployment. It will be shared with ALL the CRM Users and Queues. So if you had logging at this level, you'll have the information for ALL Users.

 

Htp

 

Benjamin LECOQ

Published Tuesday, March 25, 2008 10:38 AM by benlec

Comments

# MSDN Blog Postings &raquo; How to implement Logging for the Microsoft CRM 4.0 E-mail Connector

# Troubleshooting CRM E-Mail Issues in Microsoft CRM 4.0

Monday, May 05, 2008 11:32 AM by Microsoft CRM Support Tools Info

Hi all, After my post about the CRM Router Logging, I wanted to give you some examples about how to use

# Troubleshooting the Microsoft Dynamics CRM E-mail Router

Thursday, January 08, 2009 12:51 PM by Microsoft Dynamics CRM Team Blog

This post will give you some steps and links to additional information on troubleshooting the different

# Troubleshooting the Microsoft Dynamics CRM E-mail Router

Thursday, January 08, 2009 4:00 PM by Microsoft Dynamics CRM Team Blog

This post will give you some steps and links to additional information on troubleshooting the different

# Troubleshooting the Microsoft Dynamics CRM E-mail Router

Thursday, January 08, 2009 4:01 PM by Microsoft Dynamics CRM Team Blog

This post will give you some steps and links to additional information on troubleshooting the different

Anonymous comments are disabled
 
Page view tracker