Logging with the new logging API

Resolves: #30