You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is a Drogon's dependencies, so reuse trantor will save some resources
trantor is non-blocking I/O cross-platform, thread safe, async library.
Support multi streams logger (can chose to write log to different file, stream, ... )
Support log file rotation and set max file size: when log file exceeds max size, will roll to new file with the same prefix: <prefix>.00000.log -> <prefix>.00001.log. Currently max log file size is 20 Mb.
Support all needed informations: for example 20240903 06:46:55.974670 UTC 1268127 INFO Request 1727: Inference completed - llama_engine.cc:827, it includes time, timezone, process id, log level, message, source code file and line number
Log levels:
trace
info
debug
warning
error
fatal
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
Open Questions:
The text was updated successfully, but these errors were encountered: