Project Description
Enterprise Library Trace Listener that writes to Microsoft Dynamics CRM 2011, formatting the output with an ILogFormatter

Dynamics CRM Connection Configuration Sample

http://msdn.microsoft.com/en-us/library/gg695810.aspx

On Premise

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <connectionStrings>
    <add name="Crm" connectionString="Url=https://domain.com/orgname; Domain=domain; Username=username; Password=password"/>
  </connectionStrings>
</configuration>

On Premise IFD deployment

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <connectionStrings>
    <add name="Crm" connectionString="Url=https://orgname.domain.com; Username=domain\username; Password=password"/>
  </connectionStrings>
</configuration>

* Listener Configuration Sample
* support configuration file integration
* support enterprise library configuration tool
* support fluent api configuration

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
  </configSections>
  <loggingConfiguration name="" tracingEnabled="true" defaultCategory="General">
    <listeners>
      <add name="Microsoft Dynamics CRM 2011 Trace Listener" type="ZhongchenZhou.EnterpriseLibrary.Logging.DynamicsCrm2011.DynamicsCrm2011TraceListener, ZhongchenZhou.EnterpriseLibrary.Logging.DynamicsCrm2011, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
        listenerDataType="ZhongchenZhou.EnterpriseLibrary.Logging.DynamicsCrm2011.Configuration.DynamicsCrm2011TraceListenerData, ZhongchenZhou.EnterpriseLibrary.Logging.DynamicsCrm2011, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
        crmConnectionStringName="Crm" formatter="Text Formatter" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack" />
    </listeners>
  </loggingConfiguration>
</configuration>









Last edited Nov 20, 2012 at 4:19 AM by zzc000, version 6