Adds logging macros which check for the LOGGING macro