Categorygithub.com/hashicorp/terraform-plugin-log

# README

PkgGoDev

terraform-plugin-log

terraform-plugin-log is a helper module for logging from Terraform providers. It uses RPC-specific loggers to attach context and information to logs, and has multiple loggers to allow filtering of log output, making finding what you're looking for easier. It is a small wrapper on top of go-hclog, adding some conventions and reframing things for Terraform plugin developers.

Go Compatibility

This project follows the support policy of Go as its support policy. The two latest major releases of Go are supported by the project.

Currently, that means Go 1.19 or later must be used when including this project as a dependency.

Contributing

See .github/CONTRIBUTING.md

License

Mozilla Public License v2.0

# Packages

Package tflog provides helper functions for writing log output and creating loggers for Terraform plugins.
Package tflogtest provides functionality for unit testing of provider logging.
Package tfsdklog provides helper functions for logging from SDKs and frameworks for building Terraform plugins.
Package tfsdklogtest provides functionality for unit testing of SDK logging.