Add macros for logging and assertions