probo / rules
getprobo/probo/.cursor/rules/go-logging.mdc
Go logging — structured, PII-free, use go.gearno.de/kit/log
Cursor rule1.4k starsChanged 3 months ago
What's in it
- Go logging
- Rules
---
description: Go logging — structured, PII-free, use go.gearno.de/kit/log
globs: "**/*.go"
alwaysApply: false
---
# Go logging
Use `go.gearno.de/kit/log` — named, context-aware structured logging with typed fields.
## Rules
- **Never log PII, PHI, or sensitive data** (emails, names, passwords, tokens, health records)
- Log opaque identifiers instead (IDs, request IDs)
- Use typed field helpers: `log.String`, `log.Int`, `log.Error`, etc.
- Use `*Ctx` variants for context-aware logging
```go
// GOOD
l.InfoCtx(
ctx,
"HTTP request to trust center custom domain, redirecting to HTTPS",
log.String("domain", domain),
log.String("path", r.URL.Path),
log.String("request_id", reqID),
)
// BAD — logs PII
l.InfoCtx(ctx, "user login", log.String("email", user.Email))
// BAD — unstructured
log.Printf("processing request for %s", userID)
```
More agent context in getprobo/probo
29 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Cursor rule
- .cursor/rules/code-comments.mdc
- .cursor/rules/config-propagation.mdc
- .cursor/rules/coredata-migrations.mdc
- .cursor/rules/detail-page-back-link.mdc
- .cursor/rules/git-commit-signing.mdc
- .cursor/rules/git-commit-style.mdc
- .cursor/rules/go-authorize-scope.mdc
- .cursor/rules/go-coredata-load-naming.mdc
- .cursor/rules/go-declarations.mdc
- .cursor/rules/go-delete-no-rows-check.mdc
- .cursor/rules/go-error-handling.mdc
- .cursor/rules/go-imports.mdc
- .cursor/rules/go-multiline-params.mdc
- .cursor/rules/go-naming-conventions.mdc
- .cursor/rules/go-pg-constraint-check.mdc
- .cursor/rules/go-upsert-returning-id.mdc
- .cursor/rules/go-url-construction.mdc
- .cursor/rules/list-filtering.mdc
- .cursor/rules/no-outlet-context-data.mdc
- .cursor/rules/prompt-style.mdc
- .cursor/rules/react-named-exports-lazy-entry.mdc
- .cursor/rules/relay-connection-item-components.mdc
- .cursor/rules/relay-fragments-not-data-props.mdc
- .cursor/rules/relay-required-directive.mdc
- .cursor/rules/skeleton-width-sync.mdc
- .cursor/rules/template-files.mdc
- .cursor/rules/v2-color-scale.mdc
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

