Magento 1

  • In the DHL module configuration, enable the option "Logging".
  • Set the log level to "Debug" to log all data.
  • In the section "Configuration -> Advanced -> Developer -> Log settings" set the option "Enabled" to "Yes" (also explained in this tutorial).
  • Create a DHL shipment. The data will now be written to the file "var/log/dhl_versenden.log".
  • When the troubleshooting is finished, disable the logging in the DHL module.


DHL module configuration


Developer settings


Magento 2

  • In the DHL module configuration, enable the option "Logging".
  • Set the log level to "Debug" to log all data.
  • Enable the Debug Logging in Magento, see this tutorial.
  • Create a DHL shipment. The data will now be written to the files in "var/log".
  • When the troubleshooting is finished, disable the logging in the DHL module.


Note: If your Magento 2 is in production mode, the Debug Logging will be disabled by default. To enable it, follow this tutorial.



Log analysis

To analyze the log, refer to this article (currently only available in German). It explains the structure and the transmitted information.