The log file will only be written if the logging is enabled in the DHL module configuration.

In Magento 1.x, it is also necessary to enable the general logging in Magento, see "System -> Configuration -> Advanced -> Developer -> Log Settings".

The log will then be written to the directory "var/log/" and allows inspecting the data that was sent to DHL.