No description
  • Go 99.9%
  • Makefile 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Graham Davison 2f73dc013b
Adds log level guard functions (#299)
* Adds `loggertest.ProviderRootWithLevel`

* Adds guard functions to provider root logger

* Adds guard functions to provider subsystem logger

* Adds `loggertest.SDKRootWithLevel`

* Adds guard functions to SDK root logger

* Adds guard functions to SDK subsystem logger

* Adds example tests

* Fixes linter errors in SDK logging tests
2026-07-21 12:49:21 -04:00
.changes [Chore] Upgrade Go version to 1.25 (#285) 2026-03-05 14:41:27 -05:00
.github build(deps): bump the github-actions group across 1 directory with 3 updates (#300) 2026-07-16 22:03:04 -04:00
internal Adds log level guard functions (#299) 2026-07-21 12:49:21 -04:00
META.d Add catalog metadata (META.d) (#251) 2025-05-13 08:15:24 -04:00
tflog Adds log level guard functions (#299) 2026-07-21 12:49:21 -04:00
tflogtest build(deps): bump github.com/hashicorp/copywrite from 0.24.0 to 0.24.2 in /tools (#279) 2026-02-06 11:25:41 -05:00
tfsdklog Adds log level guard functions (#299) 2026-07-21 12:49:21 -04:00
tfsdklogtest build(deps): bump github.com/hashicorp/copywrite from 0.24.0 to 0.24.2 in /tools (#279) 2026-02-06 11:25:41 -05:00
tools build(deps): bump golang.org/x/crypto from 0.45.0 to 0.52.0 in /tools (#297) 2026-07-16 17:49:33 -04:00
.changie.yaml [CI] terraform-devex-repos automation 2024-06-07 16:22:29 -04:00
.copywrite.hcl Add catalog metadata (META.d) (#251) 2025-05-13 08:15:24 -04:00
.gitignore Prefer using raw fixtures in testing (#74) 2022-07-13 17:24:35 +01:00
.golangci.yml SEC-090: Automated trusted workflow pinning (2025-04-07) (#249) 2025-04-09 10:48:17 -05:00
.goreleaser.yml SEC-090: Automated trusted workflow pinning (2024-06-17) (#208) 2024-06-21 10:51:03 -04:00
CHANGELOG.md Update changelog 2025-11-13 18:04:00 +00:00
go.mod [Chore] Upgrade Go version to 1.25 (#285) 2026-03-05 14:41:27 -05:00
go.sum build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#238) 2025-03-07 15:11:14 -05:00
LICENSE build(deps): bump github.com/hashicorp/copywrite from 0.24.0 to 0.24.2 in /tools (#279) 2026-02-06 11:25:41 -05:00
Makefile [COMPLIANCE] Add copyright and license headers (#153) 2023-06-05 09:37:22 -04:00
README.md [Chore] Upgrade Go version to 1.25 (#285) 2026-03-05 14:41:27 -05:00

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.25 or later must be used when including this project as a dependency.

Contributing

See .github/CONTRIBUTING.md

License

Mozilla Public License v2.0