web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Realtime Service not logging

(0) ShareShare
ReportReport
Posted on by

I'm trying to configure our Realtime service to log "All" to the disk, but no files are created. It worked a couple of months ago but now i can't figure out why its not working anymore. 

The folder is configured so that everyone have full control so it should'nt be a permission issue. Can anyone guide me in the right direction to get to logging to work again.

This is a logging part of the configuration file.

  <system.diagnostics>
    <sources>
      <!-- this registers the listener with traces from a specific source -->
      <source name="RetailNetTracer" switchValue="All">
        <listeners>
          <!-- Unblock the below code to turn on trace file. Make sure write permission is granted to the file folder. -->
           <add name="RollingXmlWriterTraceListener" /> 
        </listeners>
      </source>
      <source name="RetailNetTracerEventLog" switchValue="Error">
        <listeners>
          <add name="EventLogTraceListener" />
        </listeners>
      </source>
      <!-- The below source and listener are required for Retail monitoring to function correctly. Please do not modify either. -->
      <source name="RetailMonitoringTracer" switchValue="Information">
        <listeners>
          <add name="MonitoringEventLogTraceListener" />
        </listeners>
      </source>
    </sources>
    <!-- this defines a listener -->
    <sharedListeners>
      <!-- initializeData is the file name.  If empty, it is going to be created in %TEMP%\RetailLogs\<name of exe> -->
      <add name="RollingXmlWriterTraceListener" type="Microsoft.Dynamics.Retail.Diagnostics.Sinks.RollingXmlWriterTraceListener, Microsoft.Dynamics.Retail.Diagnostics.Sink" initializeData="C:\Logs\RTS\log.svclog" MaxLogFileInBytes="50000000" traceOutputOptions="ProcessId, DateTime, LogicalOperationStack" />
      <add name="EventLogTraceListener" type="System.Diagnostics.EventLogTraceListener" initializeData="Microsoft Dynamics AX Retail : Real time Service CommerceDataExchangeRealtimeService" />
      <!-- This listener is required for Retail monitoring to function correctly.  Please do not modify it. -->
      <add name="MonitoringEventLogTraceListener" type="System.Diagnostics.EventLogTraceListener" initializeData="Microsoft Dynamics AX Retail Monitoring : Real time Service CommerceDataExchangeRealtimeService" />
    </sharedListeners>
    <!-- this configures tracing -->
    <trace autoflush="true">
      <listeners>
        <remove name="Default" />
        <add name="RollingXmlWriterTraceListener" />
        <add name="EventLogTraceListener" />
      </listeners>
    </trace>
  </system.diagnostics>


*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Noone?

  • Verified answer
    Community Member Profile Picture
    on at

    After troubleshooting this with the Microsoft support for a couple of days the MS finally found the error. In CU8 theres an typo in the Web.Config file.

    Using the clean file you get after install, of which we saved a copy at least on the test server, make the changes listed on the support blog (blogs.msdn.com/.../ax-for-retail-2012-r2-troubleshooting-the-real-time-service.aspx) and modify the following on line 35:

    <add name="RollingXmlWriterTraceListener" type="Microsoft.Dynamics.Retail.Diagnostics.Sinks.RollingXmlWriterTraceListener, Microsoft.Dynamics.Retail.Diagnostics.Sink" initializeData="c:\logs\RTS.svclog" MaxLogFileInBytes="50000000" traceOutputOptions="ProcessId, DateTime, LogicalOperationStack" />

    The line needs to be changed to:

    <add name="RollingXmlWriterTraceListener" type="Microsoft.Dynamics.Retail.Diagnostics.Sinks.RollingXmlWriterTraceListener, Microsoft.Dynamics.Retail.Diagnostics.Sinks" initializeData="c:\logs\RTS.svclog" MaxLogFileInBytes="50000000" traceOutputOptions="ProcessId, DateTime, LogicalOperationStack" />

    The typo in the config causes the application not to find the listener and hence not creating the file. I have attached a working file as an example. Please test this on your environment and let me know the outcome.

    As you might not see theres a missing s in the type attribute. Sink vs Sinks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans