severian42 / GraphRAG-Local-UI

GraphRAG using Local LLMs - Features robust API and multiple apps for Indexing/Prompt Tuning/Query/Chat/Visualizing/Etc. This is meant to be the ultimate GraphRAG/KG local LLM app.
MIT License
1.51k stars 173 forks source link

Add .gitignore and to centralize log configuration #94

Closed cnm13ryan closed 3 weeks ago

cnm13ryan commented 3 weeks ago

No .gitignore file was present, so I added one.

The repository had issues with log reading due to scattered configurations, making it difficult to manage logs across the console and application without manual adjustments.

To address this, I centralized the log configuration control in api.py.

I used grep -rE "logging\.(basicConfig|getLogger\(\).addHandler)" to identify relevant files (index_app.py, app.py, cli.py). I removed basicConfig(...) calls and commented out queueHandler in cli.py to prevent duplication.

Now, logs are properly handled in both the console and application, with a new log directory for separate log files. This implementation also highlights issues like #93 and #82.