Skip to content

Add timestamps to console logs - #816

Open
caydyan wants to merge 1 commit into
stakwork:masterfrom
caydyan:codex/timestamp-console-logs-90
Open

Add timestamps to console logs#816
caydyan wants to merge 1 commit into
stakwork:masterfrom
caydyan:codex/timestamp-console-logs-90

Conversation

@caydyan

@caydyan caydyan commented Jun 14, 2026

Copy link
Copy Markdown

Summary

  • add a one-time console wrapper so raw console.log/info/warn/error/debug output gets -> YYYY-MM-DD HH:mm:ss: prefixes
  • install the wrapper at app startup after the UTC timezone is set
  • skip lines already formatted by the Express logger or sphinxLogger so existing timestamped logs are not double-prefixed

Bounty

Sphinx bounty feed #90: "Add timestamps to all of our logs - $@ 200,000"

Payout address: bc1qev5ant33v5y89qqjvcf4mh9hlax5svqf5xd7gc

Validation

  • npx jest src/tests/unit_tests/logger.test.ts --runInBand
  • npm run test-unit -- --runInBand
  • npx tsc --noEmit --pretty false
  • git diff --check

@caydyan

caydyan commented Jun 14, 2026

Copy link
Copy Markdown
Author

Current-head validation rerun on 30303a261c288b5afa941ec7270f87e8031a1747:

  • git diff --check origin/master...HEAD
  • npx jest src/tests/unit_tests/logger.test.ts --runInBand (1 suite / 4 tests passed)
  • npm run test-unit -- --runInBand (9 suites / 16 tests passed)
  • npx tsc --noEmit --pretty false

Local worktree is clean after the rerun.

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