add logging using the standard library module

Fixes #191