Basic idea how we to check whether logging is enabled for a particular kind of message.