This release adds the ability to wrap a standard library *log.Logger such that using the hclog.Logger will send data through the *log.Logger's Printf to cohabitate with existing usage.
Log cleanliness
Provides the ability to exclude messages based on simple filters.
Add Log method
This release adds a Log method that can be used to log data given a level passed in as an argument. Useful for dynamic leveling decisions.
Taming panics and mutexes
This release removes a source of potential panic calls from the logging path where either a non-string value was passed as a key or an odd number of arguments were passed to a log method.
Additionally, a bug related to mutex copying has been fixed.
Commits
8476a63 Merge pull request #67 from hashicorp/f-stdlib-wrapper
332ed19 Add the ability to wrap a log.Logger. Closes #45
5f6a9d4 Merge pull request #66 from hashicorp/f-hex
e901c5f Add convenievce functions to format numbers. Closes #65
ec1a562 Provide a way to filter out log messages easily (#64)
24cddb1 This adds the ability for the caller to be responsible for locking (#63)
1c711f3 Merge pull request #62 from hashicorp/intercept-resettable
8c719b1 Add OutputResettable conformance to InterceptLogger
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps github.com/hashicorp/go-hclog from 0.10.0 to 0.14.0.
Release notes
Sourced from github.com/hashicorp/go-hclog's releases.
Commits
8476a63
Merge pull request #67 from hashicorp/f-stdlib-wrapper332ed19
Add the ability to wrap a log.Logger. Closes #455f6a9d4
Merge pull request #66 from hashicorp/f-hexe901c5f
Add convenievce functions to format numbers. Closes #65ec1a562
Provide a way to filter out log messages easily (#64)24cddb1
This adds the ability for the caller to be responsible for locking (#63)1c711f3
Merge pull request #62 from hashicorp/intercept-resettable8c719b1
Add OutputResettable conformance to InterceptLoggerea00810
Add string function to level (#60)ed40794
hclogvet: put testdata into a sub-sub-module to avoid problems having hclogve...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)