Custom Provider logging during data source read operation

Currently developing a Terraform Provider and I have a Data Source. Using a wrapped gokit logger I have been able to log to a file everything through the provider configuration function.

However during data source read function, my logger acts like it is ignored (it is a global variable).

My data source was a resource at one point before I changed it to a data source when I realized by resource did not really fit the definition. When it was a resource the logging worked fine through the resource create operation. I was also able to log concurrently with multiple resource creation. The issue happend when I migrated to a data source.

I have tried adding fmt.Println in the data source read function to see if Terraform reports an error. With no luck, the fmt.Println was acting like it was ignored or skipped over.

Any ideas why a logger might not work in the dataSourceRead function?