Add macro to simplify logging.