Sorry for this late answer, I’ve been off for a while.
I thought that dt_control_log() was the routine to call and the file C:\Users\[username]\AppData\Local\Microsoft\Windows\INetCache\darktable\darktable-log.txt the place to look at messages.
I’ll make a try with this. Thanks.