blob: c447ec6b9e50095fefc06781f9d408b3b019dd7f [file] [log] [blame]
Abhay Kumara61c5222025-11-10 07:32:50 +00001//
2/*
3grpc_logsettable contains a thread-safe wrapper around grpc-logging
4infrastructure.
5
6The go-grpc assumes that logger can be only configured once as the `SetLoggerV2`
7method is:
8```Not mutex-protected, should be called before any gRPC functions.```
9
10This package allows to supply parent logger once ("before any grpc"), but
11later change underlying implementation in thread-safe way when needed.
12
13It's in particular useful for testing, where each testcase might need its own
14logger.
15*/
16package grpc_logsettable