title: gRPC logging in ASP.NET Core
body: <p>I have an ASP.NET Core application that is using gRPC to connect to some Google services. I seem to get occassional gRPC errors for some reason, without changing any code. So my preliminary question is:</p>
  
  <p>Is gRPC susceptible to interference by any specific operation in ASP.NET Core? </p>
  
  <p>I know that is a terribly vague question, but in all my logs, I have no indication of what is actually causing anomalies in my gRPC calls. So the real question is:</p>
  
  <p>How can I implement gRPC specific logging? I get error messages fine, but it doesn't seem like I get any debug information output in my log files.</p>
  
  <p>Also, how do I handle gRPC errors?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I my program class (entry point), I have added:</p>
  
  <pre><code>TextWriter tw = new StreamWriter(Path + @"\grpclog.txt");
  GrpcEnvironment.SetLogger(new TextWriterLogger(tw)); 
  GrpcEnvironment.Logger.Info("grpc logger test");
  </code></pre>
  
  <p>However, no logs are generated. Is this an issue with my implementation of the logger?</p>