Wrap macros for logging functions.