Summary
Many log entries include both a ledger sequence number and a timestamp. These two fields are currently formatted inconsistently across different log sites. A shared helper that produces a standard log-friendly object for the ledger context should be used everywhere both fields appear together.
Scope
- Add
ledgerLogContext(ledger: number, timestamp: Date): { ledger_sequence: number, ledger_timestamp: string } helper
- Timestamp formatted as ISO 8601 UTC string
- Add unit tests for: known ledger and timestamp produces expected output, timestamp is UTC not local time
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
Many log entries include both a ledger sequence number and a timestamp. These two fields are currently formatted inconsistently across different log sites. A shared helper that produces a standard log-friendly object for the ledger context should be used everywhere both fields appear together.
Scope
ledgerLogContext(ledger: number, timestamp: Date): { ledger_sequence: number, ledger_timestamp: string }helperAcceptance Criteria
ledger_sequenceandledger_timestampfieldsETA: 12 hours
Coordinate on Telegram