argoyle 49eedd3782
logging / coverage-baseline (pull_request) Has been skipped
logging / vulnerabilities (pull_request) Successful in 1m47s
logging / test (pull_request) Successful in 2m48s
pre-commit / pre-commit (pull_request) Successful in 5m2s
chore(ci): add shared-lib scaffolding and functional coverage gate
Bring the auth and logging libs up to the otelsetup/authz_client standard:
golangci-lint + .editorconfig + .testcoverage.yml + cliff.toml + renovate.json
+ CHANGELOG + CLAUDE.md + pre-commit and Release workflows. Replace the
minimal test-only CI with a cache-based coverage-regression gate (PR test job
restores main's baseline from the Actions cache; a non-gating post-merge
coverage-baseline job records it) mirroring the services (ADR-0010 carve-out).
Job names test/vulnerabilities preserved to match branch-protection contexts.
2026-06-15 19:44:14 +02:00
2026-06-15 11:52:40 +02:00
2026-06-15 11:52:40 +02:00
2026-06-15 11:52:40 +02:00
2026-06-15 11:52:40 +02:00

logging

Shared logging primitives for Shiny backend services.

  • SetupLogger(level, format, service, version) — configures the slog default logger (text / json / otel) and returns it.
  • ContextWithLogger / LoggerFromContext — carry a logger on the context.
  • NewMockLogger() — test helper for asserting log output.
  • logging/middleware.RequestLogger(logger) — HTTP middleware that debug-logs request/response bodies.

Replaces the logging package (and the middleware request-logger) copied into the backend services.

S
Description
Shared logging primitives (slog setup, context logger, mock logger, request-logger middleware) for Shiny services
Readme 58 KiB
v0.2.0 Latest
2026-06-19 17:06:57 +00:00
Languages
Go 100%