GetMethodLogger returns the MethodLogger for the given methodName. methodName should be in the format of "/service/method". Each MethodLogger returned by this method is a new instance. This is to generate sequence id within the call.
(methodName string)
| 66 | // Each MethodLogger returned by this method is a new instance. This is to |
| 67 | // generate sequence id within the call. |
| 68 | func GetMethodLogger(methodName string) MethodLogger { |
| 69 | if binLogger == nil { |
| 70 | return nil |
| 71 | } |
| 72 | return binLogger.GetMethodLogger(methodName) |
| 73 | } |
| 74 | |
| 75 | func init() { |
| 76 | const envStr = "GRPC_BINARY_LOG_FILTER" |
no test coverage detected