Skip to content

Releases: bdlm/log

v2.0.6: Sanitize JSON-encoded strings

13 Nov 17:30
04717ae
Compare
Choose a tag to compare

Fixes an issue with sanitizing json-encoded strings.

v2.0.5: Sanitize JSON-encoded secrets (#41)

13 Nov 16:38
731f729
Compare
Choose a tag to compare

Fixes an issue with sanitizing json-encoded strings.

v2.0.4

23 Mar 04:45
6310235
Compare
Choose a tag to compare

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 to os.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

21 May 21:45
7336294
Compare
Choose a tag to compare

Changed

  • removed Gopkg.toml

v2.0.2

05 May 01:32
8c64ec9
Compare
Choose a tag to compare

v2.0.2 - 2020-05-04

Changed

  • Bugfix around error formatting

v2.0.1

03 May 04:13
3747319
Compare
Choose a tag to compare

v2.0.1 - 2020-05-02

Changed

  • Update github.com/bdlm/errors package

v2.0.0

02 May 23:36
360c126
Compare
Choose a tag to compare

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 to WithError will be logged with github.com/bdlm/error formatting verbs to provide detailed error traces in log output.
  • Errors are diferentiated from structured fields with respect to WithError and WithField/WithFields
    • WithError will track the error value separately from fields added via WithField and WithFields 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)

05 Mar 02:08
51f92e4
Compare
Choose a tag to compare
  • Add a gRPC request interceptor.

v0.1.19

22 Jun 18:16
Compare
Choose a tag to compare
  • Expose the LevelString function for use in custom formatters.

v0.1.18

14 Mar 22:57
b8b76dd
Compare
Choose a tag to compare
  • properly encode json values in TTY output