Add debug logging, move logging to `logger` package