letta
letta copied to clipboard
Write to log file
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, I'm interested in working on this; also, please provide additional information regarding this if available.
- 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
), inprintd
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
(maybeMEMGPT_DIR + '.log'
)
@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, 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.