add macro to disable log.