All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Major: backwards incompatible package updates
- Minor: feature additions
- Patch: bug fixes, backward compatible model and function changes, etc.
-
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)
- removed Gopkg.toml
- Bugfix around error formatting
- Update
github.com/bdlm/errors
package
v2.0.0
is the production release of the v0.1.0
development branch.
go.mod
github.com/bdlm/std/v2/log
interfaces- extended error handling, including
github.com/bdlm/errors/v2
support
- 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.
- gRPC request interceptor. Will be replaced in a separate package.
- gRPC request interceptor.
- Expose the
LevelString
function for use in custom formatters.
- properly encode json values in TTY output
- fix type display logic
- update pr template
- update readme
- update TTY color scheme and layout
- cleanup template logic
- template fixes for v1.9 and v1.10
- caller level adjustment control with SetCallerLevel(level uint)
- TTY color scheme
- This reverts commit da2feacffefce803820e8c090306bffb59d3f08c.
- move Fields type to bdlm/std (#13)
- adds a stdlib compatible formatter
- don't remove empty fields
- don't escape log messages in text TTY output
- remove message truncation in text TTY output
- Documentation updates and minor cleanup.
- implements the github.com/bdlm/std:Logger interface
- adds support for a verbose trace logging mode.
implement various PRs listed on sirupsen/logrus
- sirupsen/logrus/pull/664
- sirupsen/logrus/pull/647
- sirupsen/logrus/pull/687
- sirupsen/logrus/pull/685
- sirupsen/logrus/pull/788 (existed previously)
This also updates the string escape logic, all values are now JSON escaped fixes an issue with internal properties being included in JSON format adds new fields to unit tests (data and caller) minor cleanup of text templates
- added tty formatting to JSON output
- updated tty formatting
- TTY format updates
- Minor cleanup
cleanup goreportcard errors (#5)
- cleanup 'ineffassign' errors
- reduce cyclomatic complexity
- update documentation
- Update TTY formatting
- cleanup README