Runtime control of logging - was code gen time previously