Scope
Port Bun corpus position 3983, js/third_party/grpc-js/test-logging.test.ts.
Required contracts
- expose
@grpc/grpc-js/build/src/logging - support logger replacement and retrieval
- gate DEBUG, INFO, and ERROR records by configured verbosity
- expose public
grpc.setLogger,grpc.setLogVerbosity, andgrpc.logVerbosity - preserve custom logger failures as causes with logging-operation/severity/source stack context
Verification
- focused upstream file passes without unsupported cases
- permanent diagnostics cover gating and a throwing custom logger
- existing gRPC, SQL adapter, and third-party gates remain green