I have a service on windows that's running another process that prints many lines to its STDERR and STDOUT. I'm capturing those lines and redirect them to some log file. I would like to logrotate on this log file, if its size is getting too big to create another file and save the previous one. instead of implementing it on my own i thought of using some third party logrotate libraries like spdlog.
the issue is that i can't obviously make the process to use the logger API and if