private void EnabledGrpcTracing() { Environment.SetEnvironmentVariable("GRPC_VERBOSITY", "info"); Environment.SetEnvironmentVariable("GRPC_DNS_RESOLVER", "native"); Environment.SetEnvironmentVariable("GRPC_TRACE", "all"); Debug.Log("Setting Grpc Logger"); _logger = new Grpc.Core.Logging.LogLevelFilterLogger(new GrpcLogger(), Grpc.Core.Logging.LogLevel.Info); GrpcEnvironment.SetLogger(_logger); _logger.Debug("GRPC_VERBOSITY = " + Environment.GetEnvironmentVariable("GRPC_VERBOSITY")); _logger.Debug("GRPC_TRACE = " + Environment.GetEnvironmentVariable("GRPC_TRACE")); }
void Start() { Application.SetStackTraceLogType(LogType.Log, StackTraceLogType.None); Environment.SetEnvironmentVariable("GRPC_VERBOSITY", "INFO"); Environment.SetEnvironmentVariable("GRPC_TRACE", "api,channel,connectivity_state,executor"); Debug.Log("GRPC_VERBOSITY = " + Environment.GetEnvironmentVariable("GRPC_VERBOSITY")); Debug.Log("GRPC_TRACE = " + Environment.GetEnvironmentVariable("GRPC_TRACE")); Debug.Log("Setting Grpc Logger"); var logger = new Grpc.Core.Logging.LogLevelFilterLogger(new GrpcLogger(), Grpc.Core.Logging.LogLevel.Info); Grpc.Core.GrpcEnvironment.SetLogger(logger); }