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

Allow per-component logging configuration via environment variables #3937

Open
dfawley opened this issue Oct 7, 2020 · 6 comments
Open

Allow per-component logging configuration via environment variables #3937

dfawley opened this issue Oct 7, 2020 · 6 comments
Labels
P3 Type: Feature New features or improvements in behavior

Comments

@dfawley
Copy link
Member

dfawley commented Oct 7, 2020

No description provided.

@dfawley dfawley added P2 Type: Feature New features or improvements in behavior labels Oct 7, 2020
@dfawley dfawley added fixit and removed fixit labels Jan 21, 2021
@easwars
Copy link
Contributor

easwars commented May 4, 2021

We did add the per component logging capability with https://github.com/grpc/grpc-go/blob/master/grpclog/component.go.

@dfawley : With this issue, did you envision having environment variables on a per component level where the verbosity and severity can be set?

@easwars easwars added the fixit label May 4, 2021
@easwars easwars self-assigned this May 4, 2021
@easwars
Copy link
Contributor

easwars commented May 4, 2021

This doesn't seem like a small enough issue which can be fixed as part of the fixit. But assigning the label anyways so that we can discuss it and make a call.

@easwars easwars added P3 and removed fixit P2 labels May 4, 2021
@easwars easwars removed their assignment May 4, 2021
@ZhouyihaiDing
Copy link
Contributor

Hi,
I am wondering if we can add a check for GRPC_GO_LOG_SEVERITY_LEVEL in glogger.

@dfawley
Copy link
Member Author

dfawley commented Sep 7, 2022

@ZhouyihaiDing this issue is unrelated. Please send me a chat message to discuss or file a new issue, thanks!

@thefallentree
Copy link

what is the current way of showing these internal log messages? Even through code?

@easwars
Copy link
Contributor

easwars commented Sep 19, 2023

what is the current way of showing these internal log messages? Even through code?

I'm not sure I understand your question. But we currently have two environment variables that control the logging level and the verbosity: GRPC_GO_LOG_VERBOSITY_LEVEL and GRPC_GO_LOG_SEVERITY_LEVEL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Type: Feature New features or improvements in behavior
Projects
None yet
Development

No branches or pull requests

4 participants