Macro to enable/disable logging