Put logging definition in root code