Logging

Logging! \o/
Boring, but useful. Please test before merging. Should be OK, but just to be sure.