Skip to content

feat: configurable log timezone#1956

Open
chiefmojo wants to merge 1 commit into
MemTensor:dev-20260604-v2.0.19from
chiefmojo:feat/log-timezone
Open

feat: configurable log timezone#1956
chiefmojo wants to merge 1 commit into
MemTensor:dev-20260604-v2.0.19from
chiefmojo:feat/log-timezone

Conversation

@chiefmojo

Copy link
Copy Markdown

Problem

All log timestamps are hardcoded to UTC via Pino's formatters.level path — there's no way for operators in other timezones to get local timestamps without post-processing logs.

Changes

  • Adds logging.timezone config field (IANA zone string, default "UTC")
  • Logger initializer reads the field and passes it to Pino as timestamp: () => \,"time":"${new Date().toLocaleString('en-CA', { timeZone, hour12: false })}"``
  • Schema validation rejects invalid IANA zones with config_invalid
  • Tests cover UTC default, valid custom zones, and invalid zone rejection

Config example

logging:
  timezone: America/Los_Angeles

Depends on fix/daemon-init-logger (#1955) — without initLogging: true in the bridge the timezone config is never read.

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.

2 participants