Logging is currently done in an ad-hoc way using `putStrLn`. We should use the `monad-logger` package.