Redirection of Siril log not working

As suggested in the documentation and in multiple forums
Invoking program with the suggested line

“C:\Program Files\Siril\bin\siril.exe” 2>&1 > sirillog.txt
in a cmd prompt nothing happens.
Doing it in a shortcut the Siril GUI opens but
you get an error in the inline log “Error opening image C:\Program Files\Siril\bin\2>&1: file not found or not supported.” and no log gets saved.
I checked about syntax, spaces and so but…
Any clue?
Thanks

Thanks for the report, the documentation line is wrong: the redirection order matters in cmd. 2>&1 > file sends stderr to the console and only stdout to the file.
Please use:

"C:\Program Files\Siril\bin\siril.exe" > "%USERPROFILE%\sirillog.txt" 2>&1

The log will be in your user folder (C:\Users\<you>\sirillog.txt).

A shortcut can’t work with this syntax as is, because redirections are handled by cmd, not by Siril. That’s why Siril tried to open “2>&1” as an image. If you wanta shortcut, set its target to:

C:\Windows\System32\cmd.exe /c ""C:\Program Files\Siril\bin\siril.exe" > "%USERPROFILE%\sirillog.txt" 2>&1"

We’ll fix the documentation.

Great, thanks for the solution. Let’s file it as a documentation bug! Cheers

It is fixed now.