WithUserID returns a Logger that has information about the current user in its details.
(userID string, l kitlog.Logger)
| 12 | // WithUserID returns a Logger that has information about the current user in |
| 13 | // its details. |
| 14 | func WithUserID(userID string, l kitlog.Logger) kitlog.Logger { |
| 15 | // See note in WithContext. |
| 16 | return kitlog.With(l, "org_id", userID) |
| 17 | } |
| 18 | |
| 19 | // WithTraceID returns a Logger that has information about the traceID in |
| 20 | // its details. |