Make sure attach() is called as soon as LogPrinter is initialized

Fixes #35.
Merge pull request #40 from orchardup/fix-35

Make sure attach() is called as soon as LogPrinter is initialized