So, to do this you just edit your Ax32.exe.config file (or if this file doesn't exist near the Ax32.exe app file, just create it) and append the following content:
<configuration>
<system.diagnostics>
<trace autoflush="true"/>
<sources>
<source name="Microsoft.Dynamics.Kernel.Client.DiagnosticLog-Infolog"
switchValue="Information">
<listeners>
<add name="EventLog"
type="System.Diagnostics.EventLogTraceListener"
initializeData="Dynamics Trace Infolog"/>
<add name="TextFile"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="DynamicsTraceInfologTrace.log"
traceOutputOptions="DateTime"/>
</listeners>
</source>
</sources>
</system.diagnostics>
</configuration>
You might also be interested in my more general article about tracing: http://dev.goshoom.net/en/2014/06/instrumentation-and-tracing/
ReplyDeleteHi Martin,
ReplyDeleteThanks for reminding that - your post is very explanatory regarding this topic (I recall now reading sometime in the last year your post).
Hi Martin,
ReplyDeleteThanks a lot for knowledge sharing.
Very interesting article.
Thanks!
Atul