Add log-globals snippet

https://github.com/sindresorhus/log-globals