Fixes #99: logging from phantomas scope is broken

Fixes #99