Add macro to simplify logging

Add macro to simplify logging.