Releases: bdlm/log
Releases · bdlm/log
v2.0.6: Sanitize 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
HOSTNAME
is 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.mod
github.com/bdlm/std/v2/log
interfaces- extended error handling, including
github.com/bdlm/errors/v2
support
Changed
- Enhanced error logging support
error
values logged via calls toWithError
will be logged withgithub.com/bdlm/error
formatting verbs to provide detailed error traces in log output.
- Errors are diferentiated from structured fields with respect to
WithError
andWithField
/WithFields
WithError
will track the error value separately from fields added viaWithField
andWithFields
calls. 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.