Ensure logging is defined and works correctly

Fixes #14

Using log package rather then own implementation.