log errors through the plugin interface
Merge pull request #5 from andyroyle/logging-tweak

log errors through the plugin interface