Add createBinLogger (src/scripts/lib/binFileLogger.ts): every log call is appended synchronously to logs/<bin-key>/<YYYY-MM-DD>.log (UTC) in addition to the console logger — sync writes because bin scripts process.exit() immediately. Bin bodies are wrapped in try/catch so a fatal error is logged to file and exits code 1. Override the directory with BIN_LOG_DIR. logs/ is gitignored. game-tick, market-tick, and processShipmentTick adopt the logger; generate-mission follows with its clone fix; mission-tick lands with its feature. Document BIN_LOG_DIR in .env.example and the logging in AGENTS.md / README.
65 lines
814 B
Text
65 lines
814 B
Text
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
|
|
# dependencies
|
|
/node_modules
|
|
/.pnp
|
|
.pnp.js
|
|
.yarn/install-state.gz
|
|
|
|
/.idea/*
|
|
!/.idea/runConfigurations
|
|
|
|
# testing
|
|
/coverage
|
|
|
|
# next.js
|
|
/.next/
|
|
/out/
|
|
|
|
# production
|
|
/build
|
|
|
|
# misc
|
|
.DS_Store
|
|
*.pem
|
|
|
|
# generated version info (regenerated by predev/prebuild/postversion)
|
|
/src/generated/
|
|
|
|
# debug
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# bin script file logs (game-tick, market-tick, mission-tick, generate-mission)
|
|
/logs/
|
|
|
|
# local env files
|
|
.env*.local
|
|
|
|
# vercel
|
|
.vercel
|
|
|
|
# typescript
|
|
*.tsbuildinfo
|
|
next-env.d.ts
|
|
|
|
.env
|
|
.env.stg
|
|
.env.prd
|
|
|
|
/media
|
|
|
|
# Playwright
|
|
node_modules/
|
|
/.archived/test-results/
|
|
/.archived/playwright-report/
|
|
/blob-report/
|
|
/playwright/.cache/
|
|
|
|
# local tooling
|
|
/.logs/
|
|
/.omo/
|
|
/.opencode/
|
|
/.playwright-mcp/
|
|
|