Closed nguyenhoangthuan99 closed 1 month ago
For windows, we are planning to use Unix Domain Socket to communicate between process, only one process will write to log file
@nguyenhoangthuan99 Question from my side - did we consider having a separate log for CLI and Server?
we will separate log for CLI and server, details in this comment
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 tocortex.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:
--verbose
flag, log everything to terminal.