mayooear / gpt4-pdf-chatbot-langchain

GPT4 & LangChain Chatbot for large PDF docs
https://www.youtube.com/watch?v=ih9PBGVVOO4
14.95k stars 3.02k forks source link

how can I add logs / store the current logs? #362

Closed sebastianneacsu closed 1 year ago

sebastianneacsu commented 1 year ago

I deployed in an amazon ec2 instance but after a while the application dies. how can I store the logs that appear in console? I tried several options (like winston, etc) but without success. Thanks!

groovybits commented 1 year ago

I had one here: https://github.com/groovybits/gaib/commit/52b9599bb81b65a6aea07d854b77808a9df0fb4a#diff-349e858709586b934dbba2f345b55125c0f2f3eabd3430388c1c3a7cbf40e6b9 I added. Worked okay, logged into .next/ though :( so needs some crafting, and doesn't work with Vercels etc of course.

Streaming output to somewhere is ideal, in Cloudrun it logs the console.log output that is backend. This logged client end too by making the logger used through an /api/logger API endpoint :D.

dosubot[bot] commented 1 year ago

Hi, @sebastianneacsu! I'm Dosu, and I'm here to help the gpt4-pdf-chatbot-langchain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

From what I understand, you were having trouble storing logs from your application running on an Amazon EC2 instance. You mentioned trying options like Winston, but without success. Another user, groovybits, suggested a solution involving streaming output to a specific location, but noted that it may require customization and might not work with certain platforms like Vercel.

Before we close this issue, we wanted to check if it is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your understanding, and we look forward to hearing from you soon.