hi
i want to redirect python compiler messages to a file.
for example
if i run a python which has a line
a=;2
python compiler will give me an error message saying 'syntax error'
how i can fetch this error and write it to a file?
i run it with
./test.py > log.txt
but it will output the error in console.
regards