Add configurable logging

Just noticed it's missing you!