Magento 1

  • In the section "Configuration -> Sales -> Shipping methods -> DHL Versenden" 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 section "Configuration -> Sales -> Shipping methods -> DHL Shipping" enable the option "Logging" (similar to Magento 1).
  • 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 file "var/log/debug.log".
  • When the troubleshooting is finished, disable the logging in the DHL module.

Log analysis

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