Skip to content

feat: unified structured logger from lib-node 3 - #37

Merged
albanm merged 1 commit into
masterfrom
chore-unified-logging
Nov 4, 2026
Merged

albanm merged 1 commit into
masterfrom
chore-unified-logging

Conversation

@albanm

@albanm albanm commented Nov 4, 2026

Copy link
Copy Markdown
Member

Move capture to the logger shared by the data-fair stack (@data-fair/lib-node/log.js), as done in agents.

  • @data-fair/lib-express 2 and @data-fair/lib-node 3, pino-pretty as dev dependency for pretty output in dev
  • console.* in api/ replaced by log.* with static codes (start-process, stop-process, config-no-auth, browser-disconnected, contexts-pool-drain, browser-restart, page-console-parse, page-clean), enforced by a no-console lint rule
  • EVENTS_LOG_LEVEL removed from the test script
  • README: logging section
  • fix: browser reconnection called exports.start(), which does not exist in ESM
  • fix: debug lines of animated captures were never written

Why: one structured logging convention across the data-fair services: JSON lines in production, df_logs metric, implicit context.

Heads-up:

  • production logs become JSON lines instead of plain text, check log collectors.
  • a Chrome crash used to throw in the disconnected handler (probably crashing the process); it now actually reconnects in-process, a path that never ran before.

- @data-fair/lib-express 2 and @data-fair/lib-node 3, pino-pretty in dev
- console.* calls in api/ replaced by log.* with static codes, no-console lint rule
- EVENTS_LOG_LEVEL removed from the test script
- fix browser reconnection (exports.start() does not exist in ESM)
- fix animation debug lines that were never written
- README: logging section

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@albanm
albanm merged commit a2c126b into master Nov 4, 2026
4 checks passed
@albanm
albanm deleted the chore-unified-logging branch November 4, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant