Logging!

Added basic logging, off by default. Activate using `logging on’