grpc-go
grpc-go copied to clipboard
Allow per-component logging configuration via environment variables
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?
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.
Hi,
I am wondering if we can add a check for GRPC_GO_LOG_SEVERITY_LEVEL
in glogger.
@ZhouyihaiDing this issue is unrelated. Please send me a chat message to discuss or file a new issue, thanks!
what is the current way of showing these internal log messages? Even through code?
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
.