15 lines
		
	
	
		
			227 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			227 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package log
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 
 | |
| 	"google.golang.org/grpc/grpclog"
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	ctx := WithModule(context.Background(), "grpc")
 | |
| 
 | |
| 	// completely replace the grpc logger with the logrus logger.
 | |
| 	grpclog.SetLogger(G(ctx))
 | |
| }
 | 
