OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Add Option to save or write logs to a file

Open PierrunoYT opened this issue 10 months ago • 2 comments

What problem or use case are you trying to solve? Debug Errors

Describe the UX of the solution you'd like Option to auto save logs or a button to click where you can save the logs to a file.

Do you have thoughts on the technical implementation?

Describe alternatives you've considered

Additional context

PierrunoYT avatar Apr 01 '24 20:04 PierrunoYT

You can add PROMPT_DEBUG_DIR to your config/env to get full prompts and responses that were sent to or received from the LLM.

Is that what you're looking for?

rbren avatar Apr 01 '24 22:04 rbren

Thanks, @PierrunoYT, yes, we need it. I'm working on this and will have a PR soon (tomorrow probably). No button, but I'll propose both some automatic logging (errors), and the rest configurable in a logging config file.

enyst avatar Apr 01 '24 22:04 enyst

I believe this is fixed. @enyst feel free to reopen if I'm wrong

rbren avatar Apr 09 '24 20:04 rbren