Fix #22: Logging causes memory use to increase forever


Todo:
- [x] Add a logger which can be used in prod
- [ ] Enable this logger by default in prod