Releases: bdlm/log
Releases · bdlm/log
v2.0.7: Do not santitize empty strings
v2.0.6: Sanitize JSON-encoded strings
Fixes an issue with sanitizing json-encoded strings.
v2.0.5: Sanitize JSON-encoded secrets (#41)
Fixes an issue with sanitizing json-encoded strings.
v2.0.4
What's Changed
-
Use os.Hostname in addition to Getenv("HOSTNAME") (#29)
Populate the hostname from the OS, not just the environment.The environment variable
HOSTNAMEis not necessarily set on a machine, making a call toos.Hostname()a useful replacement. -
Disable hostname resolution in TestEscaping_Error.
The test output does not expect the hostname to be printed; fixing #28
breaks the test. -
Updated addSecret() to allow multiple arguments
func AddSecret(secrets ...string)
Full Changelog: v2.0.3...v2.0.4
New Contributors
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v2.0.0 - 2020-05-02
v2.0.0 is the production release of the v0.1.0 development branch.
Added
go.modgithub.com/bdlm/std/v2/loginterfaces- extended error handling, including
github.com/bdlm/errors/v2support
Changed
- Enhanced error logging support
errorvalues logged via calls toWithErrorwill be logged withgithub.com/bdlm/errorformatting verbs to provide detailed error traces in log output.
- Errors are diferentiated from structured fields with respect to
WithErrorandWithField/WithFieldsWithErrorwill track the error value separately from fields added viaWithFieldandWithFieldscalls. This means that an error logged as a structured field will not have enhanced error logging support.
Removed
- gRPC request interceptor. Will be replaced in a separate package.
v0.1.20: Add gRPC request interceptor (#24)
- Add a gRPC request interceptor.