I am running several Screen sessions in the same directory at the same time.
When the program in a certain session is completed, this session is terminated automatically. However, I need to check the output of the session. So I tried to use "screen -L" to keep a log. However, the outputs of all the sessions were logged into a single file, screenlog.0 (several lines from one session and then several lines from another session... which is impossible to read).
Is there a method to record different sessions to different log files?