logAndHandler rewritten and renamed to hipLog
hipLog modifications