Add macros for internal logging