janhq / cortex.cpp

Run and customize Local LLMs.
https://cortex.so
Apache License 2.0
1.94k stars 108 forks source link

Discussion: Cortex.cpp Logs #1084

Closed 0xSage closed 3 weeks ago

0xSage commented 4 weeks ago

Open Questions:

nguyenhoangthuan99 commented 3 weeks ago

Log library

Configuration Currently, log files are stored under /path_to_cortex_cpp_binary/logs/ but need to configurable, now we set it as default constant in source code

When this Feature is done, we will read from config to decide where to store log file.

Log upstreams For upstreams like llama.cpp and tensorrt llm, we have to override log method of those and redirect to right posion as we want, this task is Done for llamacpp and tensorrt llm, refer to this issue

Issues Trantor is thread safe but it keeps the log file open during the life time of server process. With Linux and MacOS, it works perfectly, but in windows, when a process is holding a file, windows prevents other process to access it. Refer to this Issue

Future features