logs in the generated code