Adds some utility macros for the log handling