Microsoft Dynamics AX 2012 provides the out-of-the-box logging of messages by configuring the logging mode parameter on integration ports. This is available on both basic and enhanced, inbound and outbound ports, and for document services as well as custom services.
Logging is disabled by default. As always, when adding logging to any process, take a moment and think about whether adding logging is really necessary. Also consider the level of detail that is required as this will have an impact on the performance of your service. The Logging mode parameter on integration ports provides the following options in the descending order of their level of detail: