Skip to content

feat: improve logger with self-contained log lines#2

Draft
Thanaen wants to merge 2 commits intomainfrom
better-logs
Draft

feat: improve logger with self-contained log lines#2
Thanaen wants to merge 2 commits intomainfrom
better-logs

Conversation

@Thanaen
Copy link
Copy Markdown
Owner

@Thanaen Thanaen commented Apr 1, 2026

Mirror of better-auth#94 — testing CI on fork.

Summary

  • Each log line now includes the HTTP method, URL, status code, and request duration so concurrent requests can be distinguished at a glance
  • Adds a logFormat: "legacy" option to preserve the previous log format for backward compatibility
  • Documents the new logFormat option in the logger docs
  • Adds 11 tests covering default format, legacy format, disabled mode, and parallel requests

🤖 Generated with Claude Code

Thanaen and others added 2 commits April 1, 2026 12:08
…st tracing

Each log line now includes the HTTP method, URL, status code, and request
duration so concurrent requests can be distinguished at a glance. A
`logFormat: "legacy"` option preserves the previous format for backward
compatibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Covers: self-contained log lines with method/URL/status/duration,
parallel request distinguishability, legacy format preservation,
verbose mode, and disabled logger.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant