grpc-go icon indicating copy to clipboard operation
grpc-go copied to clipboard

Allow per-component logging configuration via environment variables

Open dfawley opened this issue 4 years ago • 6 comments

dfawley avatar Oct 07 '20 22:10 dfawley

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 avatar May 04 '21 00:05 easwars

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 avatar May 04 '21 00:05 easwars

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

ZhouyihaiDing avatar Sep 07 '22 17:09 ZhouyihaiDing

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

dfawley avatar Sep 07 '22 17:09 dfawley

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

thefallentree avatar Jun 13 '23 23:06 thefallentree

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.

easwars avatar Sep 19 '23 23:09 easwars