Add TRACE macro, revamp LOG_MSG