updated Codegen to use TCLogger