Friday, April 3, 2009

Microsoft Dynamics CRM 4.0 - enable tracing / logging

To enable logging on your Microsoft Dynamics CRM 4.0 server, you can follow this instructions: http://support.microsoft.com/kb/907490/en-us. A handy tool is written to do this instead of changing the registry keys yourselve: http://blogs.msdn.com/benlec/archive/2008/03/04/crmdiagtool4-for-microsoft-crm-4-0-has-been-released.aspx.

However, the tool configures your server to log all the stuff it's processing. This is because the registry value of TraceCategories is set to "*:Verbose". Set the registry value to "*:Error" if you only want the errors to be logged. If you want to log errors and warnings, set the value to "*:Error;*:Warnings".

The default location is set to [drive]:\Program Files\Microsoft Dynamics CRM Server\Trace. To change this, change the value of the TraceDirectory registry setting.


1 comment:

Anonymous said...

According to KB907490, with CRM 4.0 the "TraceDirectory registry key is ignored".

Bummer.