Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of Add endpoints to provide ability to modify logging verbosity into release/1.10.x #16172

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #16111 to be assessed for backporting due to the inclusion of the label backport/1.10.x.

The below text is copied from the body of the original PR.


This PR introduces some endpoints to allow users to modify the logging verbosity of all loggers or an individual logger. One prerequisite of this is to ensure that the base logger that Vault uses is initialized using IndependentLevels so that individual loggers can be modified.

The two endpoints that have been introduced are sys/loggers (all loggers) and sys/loggers/:name (an individual logger, e.g. core). Each support a POST and DELETE to modify and revert back to Vault configuration, respectively.

There were a handful of loggers that were not accounted for in Core.allLoggers so I have added calls to Core.AddLogger for them. I performed an audit of calls to logger.Named to ensure the ones that I did add made sense to track. There are many short-lived loggers which have been deliberately left out.

This PR also includes a new doc page to outline the new endpoints.


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/vault-6244-log-level-api/initially-charming-piglet branch from 624f8b4 to e40ad7d Compare June 28, 2022 18:23
@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/vault-6244-log-level-api/initially-charming-piglet branch from 0a49c37 to a30b7ad Compare June 28, 2022 18:23
@ccapurso ccapurso merged commit 6ad55a8 into release/1.10.x Jun 28, 2022
@ccapurso ccapurso deleted the backport/vault-6244-log-level-api/initially-charming-piglet branch June 28, 2022 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants