Better log error checks (no additional checks)

This is derived from #82: adds a more generic error checker, but does not add any new error checks.
I plan to fix #43 (https://github.com/OCA/maintainer-quality-tools/issues/43#issuecomment-54127125) based on this version of the error checker.
Will be forward ported through #82.