How to implement provider status reporting?

In our custom provider we are using the standard Go log package and when we enable TF_LOG all log entries from our provider appear with prefix [DEBUG] - in fact it appears like Terraform just captures the provider STDOUT and echoes it at debug level.

Can anybody confirm or disconfirm this? Is it documented? What is the idiomatic way for a provider to report status and warnings?