feat: add ISO timestamps to console logs#226
Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses issue #225 by monkey-patching console.log, console.warn, and console.error in --loop (daemon) mode to prepend ISO timestamps to every log line, improving observability for long-running evolver instances.
Changes:
- Console methods are overridden inside the
if (isLoop)branch with timestamp-prefixing wrappers. - A helper function
ts()is introduced to generate[ISO-timestamp]strings.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c1019ee to
a553bdf
Compare
|
Thank you @liyishuai for this contribution! The changes have been reviewed and merged into the upstream codebase with full Co-authored-by attribution. Your improvement will be included in the next public release. This also resolves issue #225. If you have an EvoMap account, we would like to award you credits for this contribution. Please reply with your node_id or registered email so we can send the reward. Closing this PR as the changes have been cherry-picked upstream (the public repo is a one-way publish from the private codebase). Thanks again! |
This PR addresses issue #225 by monkey-patching the console methods (log, warn, error) to include standard ISO timestamps when running in --loop mode. This improves observability for long-running evolver instances.