Basic idea how we to check whether logging is enabled for a particular k...

...ind of message.