Is it possible to automate a dump of the log-file?
There is no way currently where you though GPI or serial com can start a dump of the log file. You can dump the log only via the Icon application when LM2 is connected on USB.
If you need an automated way to trigger a dump of the log we recommend http://www.sikuli.org/ which we use internally for automated test. It’s fairly simple programming, which is graphics oriented (it can trigger on changed graphics on the computer screen) and it will work across many different programs say look for a certain graphics element in a TV station playlist application and then jump to the Icon application and push the Dump Log button.