Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Turn On AOS Logging in AX 2012

(0) ShareShare
ReportReport
Posted on by

Hello,

I would like to turn on AOS logging in AX 2012.  To be more specific, I would like to log every activity from the AOS in a trace-mode manner and dump the activity into a log file.  

I'm facing an error where the AOS crashes unexpectedly and our system is not producing any logs.  The crash happens when loading an SSRS report in Visual Studio.

Does anyone know how to accomplish this?

I have modified this config file and restarted the AOS:

C:\Program Files\Dynamics AX\Microsoft Dynamics AX\60\Server\<AOS_instance_name>\Bin\Ax32Serv.exe.config

<trace autoflush="true" indentsize="4">
  <listeners>
    <add name="TextWriterListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\Temp\trace.webinfo" />
  </listeners>
</trace>

I'm not seeing any logs in any log directory.  For example, C:\Program Files\Dynamics AX\Microsoft Dynamics AX\60\Server\Log\ nor any logs in C:\Program Files\Dynamics AX\Microsoft Dynamics AX\60\Server\<AOS_instance_name>\bin\Application\log

 

*This post is locked for comments

  • RE: Turn On AOS Logging in AX 2012

    Thank you all for your responses.  The links helped a lot.  I'll give the LCS tool a try.

    I see now that a crash dump is the way to go for debugging AOS issues.

    Thanks again.

  • Verified answer
    syed baber Profile Picture
    syed baber 11,627 on at
    RE: Turn On AOS Logging in AX 2012

    Hi Bobby,

    There is a new feature recently introduced in LCS named "Crash and Hang Analysis". Below is the link to the official post:

    blogs.msdn.com/.../crash-and-hang-analysis-on-lcs.aspx

    This may help.

    Thanks,

    Baber.

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    RE: Turn On AOS Logging in AX 2012

    The whole nature of process crash is that fails unexpectedly and doesn't have chance to write log files or anything. If the processes ended gracefully, it wouldn't be a crash. That's why tracing, unlike memory dump analysis, can't cover this situation.

    I don't know what kind of logging you imagined to exist. AIF is an application framework, so it runs on AOS and if the AOS crashes, AIF obviously crashes too. You can implement any logging you like in the application layer, but it will always have the same problem.

  • RE: Turn On AOS Logging in AX 2012

    Martin, thank you for the hyperlinks.  I like the idea of running a trace.  The challenge I have with TraceParser is that since it's initiated from the AX Tracing Cockpit, once the AOS crashes during the trace, it fails to save the log to the .etl file.  I have also tried ProcMon but I either get too much or too little activity.

    I just thought of something.  I have a feeling there is no such thing as "AOS logging," similar to the way AIF and SSRS logs data to a text file.  It kind of makes sense because the AOS does so much that it's impossible to write every little detail.  Is this correct?

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    RE: Turn On AOS Logging in AX 2012

    You could use tracing, but you mustn't forget to specify the trace source you're interested in.

    Nevertheless if you want to analyze why the AOS crashed, you should create and analyze a memory dump. That's something else than tracing. Look at Possibilities to create Memory Dumps from crashing processes for more information. Also note that LCS now contain a tool for basic analysis of the dump.

  • Verified answer
    Bilal Issa Profile Picture
    Bilal Issa 4,370 on at
    RE: Turn On AOS Logging in AX 2012

    Hi,

    please try the link below.

    http://blogs.msdn.com/b/axsupport/archive/2010/10/18/aos-crash-hang-or-memory-leak-debugging-tools.aspx

    Regards,

    Bilal

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans