Skip to content

feat: add structured logging#1

Merged
fall-development-rob merged 1 commit into
mainfrom
feat/logging
Apr 4, 2026
Merged

feat: add structured logging#1
fall-development-rob merged 1 commit into
mainfrom
feat/logging

Conversation

@fall-development-rob
Copy link
Copy Markdown
Contributor

Adds configurable logging to all engine modules. Default level: warn.

New exports: getLogger, setLogLevel, setLogger, Logger, LogLevel

Logging added to all 10 engine modules:
- info: function entry/exit with key params (once per user action)
- debug: per-year/per-run data (zero cost at default 'warn' level)
- warn: edge cases (shortfall, insolvency, truncation, age-banded gaps)

Default level: 'warn'. Consumers can configure:
  setLogLevel('debug')     // verbose output
  setLogLevel('silent')    // no output
  setLogger(customLogger)  // custom implementation

Replaced all console.warn calls with structured logger.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@fall-development-rob fall-development-rob merged commit ac38790 into main Apr 4, 2026
1 check passed
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