New makes a new SpanLogger, where logs will be sent to the global logger.
(ctx context.Context, method string, kvps ...any)
| 31 | |
| 32 | // New makes a new SpanLogger, where logs will be sent to the global logger. |
| 33 | func New(ctx context.Context, method string, kvps ...any) (*SpanLogger, context.Context) { |
| 34 | return NewWithLogger(ctx, util_log.Logger, method, kvps...) |
| 35 | } |
| 36 | |
| 37 | // NewWithLogger makes a new SpanLogger with a custom log.Logger to send logs |
| 38 | // to. The provided context will have the logger attached to it and can be |