SBX - Search With Button

SBX - Forum Post Title

Viewing events from MPOS in Event Viewer

Microsoft Dynamics AX Forum

Morten Løpen asked a question on 23 Feb 2016 2:41 AM
My Badges

Question Status

Verified

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.

 

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

Reply
Rodolfo Recalde responded on 23 Feb 2016 7:55 AM
My Badges

Hi Morten,

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

I Hope this Helps,

Regards,

Rodolfo Recalde.

Reply
Morten Løpen responded on 23 Feb 2016 8:14 AM
My Badges

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

Reply
Morten Løpen responded on 23 Feb 2016 8:57 AM
My Badges
Verified Answer

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

Reply
Sergey Pikhulya responded on 23 Feb 2016 2:21 PM
My Badges

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.

Reply
alphaprolix responded on 8 Mar 2016 8:46 AM
My Badges

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. 

Reply
Mohammed Aurang responded on 8 Mar 2016 8:50 AM
My Badges

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,

Reply
Morten Løpen responded on 10 Mar 2016 2:45 AM
My Badges

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.

Reply
Mohammed Aurang responded on 10 Mar 2016 2:55 AM
My Badges

Thanks for reply Morten. 

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

Reply
Sergey Pikhulya responded on 10 Mar 2016 3:14 AM
My Badges

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

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

Reply
Mohammed Aurang responded on 10 Mar 2016 3:23 AM
My Badges

Thanks Morten & Sergey,

It worked after recapturing. I can see logs now.

Reply
Morten Løpen responded on 23 Feb 2016 8:57 AM
My Badges
Verified Answer

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

Reply

SBX - Two Col Forum

SBX - Migrated JS