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".
  • 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.
  • If necessary, 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.