check logger up front.

Fixes #8