Use the settings dialog of Kleopatra for configuring logging of the components of the GnuPG System. For each component for which you want to see logging choose a debugging level and enter socket:// as file the logs should be written to.
socket://