AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Rearch: logging interface

Open rihp opened this issue 1 year ago • 6 comments

Background

Changes

Documentation

Test Plan

PR Quality Checklist

  • [ ] My pull request is atomic and focuses on a single change.
  • [ ] I have thoroughly tested my changes with multiple different prompts.
  • [ ] I have considered potential risks and mitigations for my changes.
  • [ ] I have documented my changes clearly and comprehensively.
  • [ ] I have not snuck in any "extra" small tweaks changes

rihp avatar May 05 '23 16:05 rihp

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) May 5, 2023 7:36pm

vercel[bot] avatar May 05 '23 16:05 vercel[bot]

If I wanted to add additional metadata to a log message, what would be the recommend way to do that? I suppose it could be part of the message string. I'm thinking information like timestamp, user_id, agent_id.

Or perhaps an optional meta field in the LogMessage class. Something like this?

class LogMessage:
  title: str
  message: str
  format: LogFormat
  meta: Optional[dict]

Just thinking out loud here

dwrtz avatar May 05 '23 18:05 dwrtz

Otherwise this looks great. Being able to have a logger instance per-agent will be a huge win

dwrtz avatar May 05 '23 18:05 dwrtz

This is good progress. Keep up the good work!

anonhostpi avatar May 05 '23 18:05 anonhostpi

Made the changes suggested! @dwrtz

rihp avatar May 05 '23 19:05 rihp

We should consider adding a handler for syncing logs from a namespace @collijk @dwrtz @ntindle

rihp avatar May 06 '23 17:05 rihp