edgenai / edgen

⚡ Edgen: Local, private GenAI server alternative to OpenAI. No GPU required. Run AI models locally: LLMs (Llama2, Mistral, Mixtral...), Speech-to-text (whisper) and many others.
https://docs.edgen.co/
Apache License 2.0
328 stars 15 forks source link

feat: persistent logs #74

Open francis2tm opened 6 months ago

francis2tm commented 6 months ago

In order to give users runtime logs, before we figure out how to do that via GUI, let's allow users to easily see logs via a file in DATA_DIR or CACHE_DIR. This issue also solves #38

prabirshrestha commented 6 months ago

Would be good to have "View Logs" menu if possible similar to ollama which apparently is only available in Windows builds.

image

All it does is open a folder in Explorer. C:\Users\username\AppData\Local\Ollama and you can open the log files in a text editor.

image

francis2tm commented 6 months ago

@prabirshrestha thanks for the feedback! This is definitely possible. @toschoo What do you think?

opeolluwa commented 6 months ago

In order to give users runtime logs, before we figure out how to do that via GUI, let's allow users to easily see logs via a file in DATA_DIR or CACHE_DIR. This issue also solves #38

How about a SQLite DB Embedding instead of a file, I think you can structure the logs properly and it'll be easier to write the log