I would like to set up an automated software build system on a scripting base.
Therefore I start a batch file containing the "codesys --runscript" commands for a python script to compile a codesys project with the option --enablescripttracing.
This works fine, but the trace output is not redirected into a file completely.
On cmd prompt the batch file output ist redirected via "build.bat >> log1.dat" - ok
Within build.bat the python "print()" script commands are redirected via "> log2.dat Codesys --runscript ..." - ok
But the codesys compiler messages are displayed within cmd prompt
How can I redirect the messages that come out of codesys during e.g. the python command "app.create_boot_application(bootapppath)" ?