Add extra logging macro.