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
{{ message }}
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Problem
In windows, once a file is taken by one process, other process can not modify it. For example, when the server is writing to log file, it hold cortex.log, and if we run CLI command, it cannot write message to cortex.log.
Solution
In window, we are planning to use Unix Domain Socket to start a thread and write log to file. Below are detail implementation:
When start server, will create a thread to run UDS to listen messages and write to logfile.
From server side, override log method of Trantor to send log message to UDS server
From CLI side, when execute command, check if UDS server is live, if not write directly log to log file.
With command has --verbose flag, log everything to terminal.