To enable the log mode you have to login to the Karaf console either with ssh or the client command (see The Console | openHAB).
Maybe the stacktrace is already sufficient. Which version of the Homematic binding are you using? You could try a test version from here GitHub - MHerbst/openhab-addons-test where I made some changes regarding the network connectivity.