func github.com/gotd/log.String
43 uses
github.com/gotd/log (current package)
attr.go#L138: func String(key, value string) Attr {
attr.go#L202: return String(key, "<nil>")
attr.go#L204: return String(key, value.String())
github.com/gotd/td/crypto
key.go#L131: return log.Group("", log.String("id", hex.EncodeToString(a.ID[:])))
github.com/gotd/td/exchange
server_flow.go#L149: s.log.Debug(ctx, "Sending ResPQ", log.String("pq", pq.String()))
github.com/gotd/td/mtproto
handle_result.go#L59: log.String("err_msg", rpcErr.ErrorMessage),
zap.go#L18: attrs := []log.Attr{log.String("type_id", fmt.Sprintf("0x%x", l.ID))}
zap.go#L20: attrs = append(attrs, log.String("type_name", l.Name))
github.com/gotd/td/tdsync
log_group.go#L42: l := log.For(g.log).With(log.String("task", taskName))
github.com/gotd/td/telegram
account_status.go#L126: log.String("type", u.Type),
account_status.go#L127: log.String("message", u.Message),
account_status.go#L136: log.String("type", u.Type),
account_status.go#L137: log.String("message", u.Message),
account_status.go#L141: c.log.Debug(ctx, "Service notification", log.String("type", u.Type))
account_status.go#L238: log.String("method", method),
account_status.go#L243: log.String("reason", rpcErr.Type),
account_status.go#L244: log.String("method", method),
account_status.go#L275: log.String("method", method),
account_status.go#L282: log.String("appeal_url", state.AppealURL),
account_status.go#L283: log.String("method", method),
auth_lost.go#L251: log.String("reason", reason),
auth_lost.go#L252: log.String("kind", kind.String()),
client.go#L301: client.log = client.log.With(log.String("v", v))
connect.go#L89: c.log.Info(ctx, "Got self", log.String("username", self.Username))
connection_state.go#L98: log.String("state", s.String()),
connection_state.go#L114: log.String("kind", e.Kind.String()),
handle_updates.go#L46: c.log.Warn(c.ctx, "Ignoring update", log.String("update_type", fmt.Sprintf("%T", u)))
invoke.go#L84: log.String("error_type", rpcErr.Type),
invoke.go#L152: log.String("method", method),
invoke.go#L163: log.String("method", method),
migrate_to_dc.go#L18: c.log.Debug(ctx, "Triggering restart", log.String("reason", reason))
session.go#L49: log.String("addr", data.Addr),
session.go#L50: log.String("key_id", fmt.Sprintf("%x", data.AuthKeyID)),
session.go#L334: log.String("key_id", fmt.Sprintf("%x", data.AuthKeyID)),
sub_conns.go#L107: log.String("kind", cache.kind),
sub_conns.go#L227: log.String("kind", cache.kind),
sub_conns.go#L236: log.String("kind", cache.kind),
github.com/gotd/td/telegram/downloader
metrics.go#L260: o.log.Warn(ctx, "Hash mismatch", log.String("kind", kind), log.Int64("offset", offset))
metrics.go#L272: o.log.Warn(ctx, "File reference refresh failed", log.String("result", result), log.Error(err))
metrics.go#L284: o.log.Debug(ctx, "Scheduler backoff", log.String("reason", reason))
metrics.go#L302: log.String("result", result),
metrics.go#L315: log.String("operation", e.Operation),
metrics.go#L326: o.log.Warn(ctx, "Retry limit reached", log.String("operation", op), log.Error(err))
 |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |