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)

Viewing events from MPOS in Event Viewer

(0) ShareShare
ReportReport
Posted on by 85

Hello,

I would like to be able to view events (information, warning and error events) generated by the MPOS in Event Viewer. I am however not able to do this. In the MPOS TypeScript code you can create events like this:

Commerce.Tracer.Information("CartView.keepAliveViewActivated()");

The system.diagnostics part of my DLLHost.exe.config-file looks like this:

<system.diagnostics>
        <sources>
            <source name="RetailNetTracerEventLog" switchValue="Information">
                <listeners>
                    <add name="EventLogTraceListener" />
                </listeners>
            </source>
        </sources>
        <!-- this defines a listener -->
        <sharedListeners>
            <add name="EventLogTraceListener" type="System.Diagnostics.EventLogTraceListener" initializeData="Microsoft Dynamics AX Retail : Retail Client Broker" />
        </sharedListeners>
        <!-- this configures tracing -->
        <trace autoflush="true">
            <listeners>
                <remove name="Default" />
                <add name="EventLogTraceListener" />
            </listeners>
        </trace>
</system.diagnostics>

I have create a custom view in Event Viewer where I have included 'Microsoft Dynamics AX Retail : Retail Client Broker' as a Source.

 EventViewer_5F00_CustomView.png

I am however not seeing the events from the MPOS. For debugging purposes I would like to see the events. Do you have any suggestions?

Regards

Morten Løpen

*This post is locked for comments

I have the same question (0)
  • Rodolfo Recalde Profile Picture
    on at

    Hi Morten,

    Try  change the value >  switchValue = "All", in  RetailNetTracerEventLog 

    I Hope this Helps,

    Regards,

    Rodolfo Recalde.

  • Morten Lopen Profile Picture
    85 on at

    Hi Rodolfo,

    Thanks for you reply. I tried this, but I am afraid there was no change. I am still not seeing the events.

    Morten

  • Verified answer
    Morten Lopen Profile Picture
    85 on at

    I opened a support case with Microsoft and I now know how this works. Events from the MPOS can be found in Event Viewer here:

    Application and Services Logs -> Microsoft -> Windows -> AppHost -> AppTracing

  • SergeyP Profile Picture
    2,928 on at

    Can you locate in your Event Viewer:  Applications and Services Logs->Microsoft->Dynamics->Commerce-ModernPos?

    You would see there 3 logs: Admin, Debug, Operational where Operational would contain errors and Debug is by default disabled but can be Enabled if needed.

  • alphaprolix Profile Picture
    865 on at

    Morten,

    Can you please highlight do we need to just change SwitchValue="All" and see events in specified location as it is not appearing. may be I am missing some step. 

  • Mohammed Aurang Profile Picture
    320 on at

    Morten,

    Can you please highlight if we just specify switchVa;ue="All" in config and check at the location mentioned as I did this and unable to see any log. Any suggestions or steps will be great.

    Thanks,

  • Morten Lopen Profile Picture
    85 on at

    Hi,

    You must set switchValue to "All". Then you must activate the event log using Event Viewer.

    1. Navigate to Application and Services Logs -> Microsoft -> Windows -> AppHost.
    2. Right click AppHost and Select View -> Show Analytic and Debug Logs

    AppTracing should now appear. You might have to restart Event Viewer to see log entries. If you now use the MPOS you should see the events under AppTracing.

  • Mohammed Aurang Profile Picture
    320 on at

    Thanks for reply Morten. 

    I can see AppTracing Node now but its still empty. Should I have to recapture all tracing by running MPOS?

  • SergeyP Profile Picture
    2,928 on at

    >... I can see AppTracing Node now but its still empty. ...

    What version of the product (MPOS/AX/RS) are you using?

  • Mohammed Aurang Profile Picture
    320 on at

    Thanks Morten & Sergey,

    It worked after recapturing. I can see logs now.

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans