letta icon indicating copy to clipboard operation
letta copied to clipboard

Write to log file

Open cpacker opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

When --debug is off, write to log file. When --debug is on, dump the debug contents to both log file + stdout.

cpacker avatar Dec 15 '23 08:12 cpacker

@cpacker, I'm interested in working on this; also, please provide additional information regarding this if available.

amitsgh avatar Dec 15 '23 14:12 amitsgh

  • We should have a flag that controls logging (can be a similar control scheme to the DEBUG flag in utils.py)
  • In utils.py, if we are logging (LOG_TO_FILE == True), in printd we should write out the message to the file: https://github.com/cpacker/MemGPT/blob/main/memgpt/utils.py#L21-L23
  • The file should be put in the MEMGPT_DIR (maybe MEMGPT_DIR + '.log')

cpacker avatar Dec 15 '23 17:12 cpacker

@amitsgh if you're actively working on this you may want to check with @agiletechnologist on Discord since he's also working on adding some logging to a different PR

cpacker avatar Dec 16 '23 18:12 cpacker

@cpacker, I apologize for the delay in addressing the GitHub issue. Unfortunately, I'm currently unable to dedicate time to it. I'm sorry for any inconvenience this may cause. Additionally, I will unassign myself from the issue to allow someone else to take over.

amitsgh avatar Feb 16 '24 13:02 amitsgh