Add logging

If there's an execution error, it's hard to see which file fails. Enabling logging, on the other hand is as easy as this commit (it's in the old code before the plugin existed and I'll migrate to the plugin soon).