github.com/env0/terratag is using tfschema not as a subprocess, but by calling public API. currently, public API creates hcl.Logger with output set directly to os.Stderr with log level being TRACE. this means terratag output always contains a lot of debug info, less relevant for terratag users. we wanted to be able to control the logger, both output and log level, so we added that as an option to NewClient public function.
github.com/env0/terratag is using tfschema not as a subprocess, but by calling public API. currently, public API creates hcl.Logger with output set directly to os.Stderr with log level being TRACE. this means terratag output always contains a lot of debug info, less relevant for terratag users. we wanted to be able to control the logger, both output and log level, so we added that as an option to NewClient public function.