Releases: hashicorp/terraform-plugin-log
Releases · hashicorp/terraform-plugin-log
v0.9.0
v0.8.0
NOTES:
- This Go module has been updated to Go 1.18 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#95)
BUG FIXES:
- tflog+tflogsdk: Prevented data race conditions when using SetField and other option functions (#132)
v0.7.0
FEATURES:
- tflog: Added
MaskAllFieldValuesRegexes()
,MaskAllFieldValuesStrings()
,MaskLogRegexes()
andMaskLogStrings()
functions, which extend further the log masking filtering, for the provider root logger (#87) - tflog: Added
SubsystemMaskAllFieldValuesRegexes()
,SubsystemMaskAllFieldValuesStrings()
,SubsystemMaskLogRegexes()
andSubsystemMaskLogStrings()
functions, which extend further the log masking filtering, for provider subsystem loggers (#87) - tfsdklog: Same functions added to the
tflog
package (#87)
v0.6.0
BREAKING CHANGES:
- tflog: renamed
With()
andSubsystemWith()
, toSetField()
andSubsystemSetField()
respectively (#78) - tflog: renamed
WithMaskFieldValueWithFieldKeys()
andSubsystemWithMaskFieldValueWithFieldKeys()
, toMaskFieldValuesWithFieldKeys()
andSubsystemMaskFieldValuesWithFieldKeys()
respectively (#78) - tflog: renamed
WithMaskLogMatchingString()
andSubsystemWithMaskLogMatchingString()
, toMaskMessageStrings()
andSubsystemMaskMessageStrings()
respectively (#78) - tflog: renamed
WithMaskMessageRegex()
andSubsystemWithMaskMessageRegex()
, toMaskMessageRegexes()
andSubsystemMaskMessageRegexes()
respectively (#78) - tflog: renamed
WithOmitLogMatchingString()
andSubsystemWithOmitLogMatchingString()
, toOmitLogWithMessageStrings()
andSubsystemOmitLogWithMessageStrings()
respectively (#78) - tflog: renamed
WithOmitLogWithFieldKeys()
andSubsystemWithOmitLogWithFieldKeys()
, toOmitLogWithFieldKeys()
andSubsystemOmitLogWithFieldKeys()
respectively (#78) - tflog: renamed
WithOmitLogWithMessageRegex()
andSubsystemWithOmitLogWithMessageRegex()
, toOmitLogWithMessageRegexes()
andSubsystemOmitLogWithMessageRegexes()
respectively (#78) - tfsdklog: same renaming as for the
tflog
package (#78)
v0.5.0
FEATURES:
- tflog: Added
SubsystemWithOmitLogWithFieldKeys()
,SubsystemWithOmitLogWithMessageRegex()
,SubsystemWithOmitLogMatchingString()
,SubsystemWithMaskFieldValueWithFieldKeys()
,SubsystemWithMaskMessageRegex()
andSubsystemWithMaskLogMatchingString()
functions, which provide log omission and log masking filtering, based on message and argument keys, for provider subsystem loggers (#71) - tflog: Added
WithOmitLogWithFieldKeys()
,WithOmitLogWithMessageRegex()
,WithOmitLogMatchingString()
,WithMaskFieldValueWithFieldKeys()
,WithMaskMessageRegex()
andWithMaskLogMatchingString()
functions, which provide log omission and log masking filtering, based on message and argument keys, for the provider root logger (#71) - tfsdklog: Added
SubsystemWithOmitLogWithFieldKeys()
,SubsystemWithOmitLogWithMessageRegex()
,SubsystemWithOmitLogMatchingString()
,SubsystemWithMaskFieldValueWithFieldKeys()
,SubsystemWithMaskMessageRegex()
andSubsystemWithMaskLogMatchingString()
functions, which provide log omission and log masking filtering, based on message and argument keys, for SDK subsystem loggers (#71) - tfsdklog: Added
WithOmitLogWithFieldKeys()
,WithOmitLogWithMessageRegex()
,WithOmitLogMatchingString()
,WithMaskFieldValueWithFieldKeys()
,WithMaskMessageRegex()
andWithMaskLogMatchingString()
functions, which provide log omission and log masking filtering, based on message and argument keys, for the SDK root logger (#71)
v0.4.1
NOTES:
- The
gopkg.in/yaml.v3
dependency has been updated to address CVE-2022-28948 (#69)
v0.4.0
NOTES:
- This Go module has been updated to Go 1.17 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#51)
FEATURES:
- Added
tflogtest
package, which provides functionality for unit testing of provider logging (#62) - Added
tfsdklogtest
package, which provides functionality for unit testing of SDK logging (#62)
ENHANCEMENTS:
- tflog: Added
WithRootFields()
function, which can copy root logger fields to a new subsystem logger duringNewSubsystem()
(#60) - tfsdklog: Added
WithRootFields()
function, which can copy root logger fields to a new subsystem logger duringNewSubsystem()
(#60)
BUG FIXES:
- tflog+tfsdklog: Prevented
Unable to create logging subsystem with AdditionalLocationOffset due to missing root logger options
warning logs during acceptance testing (#58)
v0.3.0
NOTES:
- The following Go modules, if used, must be also be updated when updating to this terraform-plugin-log version:
- terraform-plugin-framework: v0.6.0 or higher
- terraform-plugin-go: v0.8.0 or higher
- terraform-plugin-mux: v0.6.0 or higher
- terraform-plugin-sdk: v2.11.0 or higher
BREAKING CHANGES:
- tflog: The
Trace()
,Debug()
,Info()
,Warn()
, andError()
functions andSubsystem
equivalents now use...map[string]interface{}
as the final optional parameter, where thestring
is the structured logging key, rather than expecting matchedkey interface{}, value interface{}
pairs. If multiple maps contain the same key, the value is shallow merged. (#34) - tfsdklog: The
Trace()
,Debug()
,Info()
,Warn()
, andError()
functions andSubsystem
equivalents now use...map[string]interface{}
as the final optional parameter, where thestring
is the structured logging key, rather than expecting matchedkey interface{}, value interface{}
pairs. If multiple maps contain the same key, the value is shallow merged. (#34)
ENHANCEMENTS:
- tflog: Added
WithAdditionalLocationOffset
function, which allows implementations to adjust the location offset when using helper functions (#36) - tfsdklog: Added
WithAdditionalLocationOffset
function, which allows implementations to adjust the location offset when using helper functions (#36)
BUG FIXES:
- tfsdklog: Consolidated multiple invalid log level messages and added missing newline (#35)