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)

Propagate the infolog messages

(0) ShareShare
ReportReport
Posted on by 2,550

I was wondering if anyone has tried this (AX 2012)

[quote]To propagate Infolog messages, edit the AX32.exe.config XML file to add listeners from the .NET System.Diagnostics namespace. One listener that you can add is the EventLogTraceListener. After you add this listener, all messages that are written to the Infolog are also written to the Windows Event Log. [/quote]

I tried to set this up, but all I get is nothing or an AX crash, but no messages in the eventlog...

See [url]msdn.microsoft.com/.../url]

*This post is locked for comments

I have the same question (0)
  • Verified answer
    David Kidder Profile Picture
    on at

    That MSDN article has the wrong Source name.

    Try replacing:

    <source name="Dynamics Infolog"

    with

    <source name="Microsoft.Dynamics.Kernel.Client.DiagnosticLog-Infolog"

    I will work on getting the MSDN article updated.

  • Xander Vink Profile Picture
    2,550 on at

    David,

    I modified the ax32.exe.config as you suggested, but still no messages appear in the eventlog.

    My ax32.exe.config now contains:

    [code]
    <?xml version="1.0" encoding="utf-8" ?>
    <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 Infolog"/>
              <add name="TextFile"
                   type="System.Diagnostics.TextWriterTraceListener"
                   initializeData="DynamicsInfologTrace.log"
                   traceOutputOptions="DateTime"/>
            </listeners>
          </source>
        </sources>
      </system.diagnostics>
      <startup useLegacyV2RuntimeActivationPolicy="true">
          <supportedRuntime version="v4.0.30319" />
          <requiredRuntime version="v4.0.30319" safemode="true"/>
      </startup>
      <runtime>
       <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <probing privatePath="EditorComponents"/>
       </assemblyBinding>
       </runtime>
    </configuration>
    [/code]

    I also tried initializeData="Microsoft.Dynamics.Kernel.Client.DiagnosticLog-Infolog", but that didn't work either.

    In the eventlog I do get an error that might be related to this problem (?):

    [quote]
    The description for Event ID 1 from source Dynamics cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    \HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\SQMClient\ was not found, return = 2
    [/quote]

  • David Kidder Profile Picture
    on at

    Xander,

    I tried the following steps and was successful:

    1. Closed AX
    2. Copied the XML contents of your previous post into my C:\Program Files (x86)\Microsoft Dynamics AX\6.0\Client\Bin\Ax32.exe.config file
    3. Saved the file
    4. Opened AX
    5. Navigated to Accounts Payable >> Common >> Vendors >> All Vendors
    6. Hit the New button
    7. When the Vendor details form opened, hit CTRL + S to force a save, which resulted in 2 InfoLog warnings about not filling in required fields.
    8. Checked the Event Log (hitting F5 to refresh since I already had Event Viewer open), where there were 2 entries with the Source "Dynamics Infolog"

    The event log entry about SQMClient shouldn't be a problem (I deleted this registry key on my machine and got the same warning that you did, but was still getting InfoLog entries in the event log).

    The initializeData attribute controls what the messages will have in the "Source" column of the Event Log and "Dynamics Infolog" is a valid value for this.

    Can you check to see if there is a "DynamicsInfologTrace.log" file in your \Program Files (x86)\Microsoft Dynamics AX\6.0\Client\Bin\ directory?  This is where the TextFile listener should be outputting to.

  • Xander Vink Profile Picture
    2,550 on at

    David,

    I got it to work (on a different machine). I copied the .config to another machine, started AX and everything works as it should. Could it be that there are issues with this functionality when used on a terminal server?

    Thanks.

  • myhlendorph Profile Picture
    15 on at

    Hi

    I have a similar problem on a terminal server. Did you get any good answers on this issue?

    Best regards

    Bo

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