[RDY] Add verification of log macros

:+1: I assumed logging would be disabled completely for release builds. Maybe worth discussion in https://github.com/neovim/neovim/pull/1071