Using openfl test html5 >> log.txt . How to make it work?

When I use this command on mac terminal to compile the source

openfl test html5

It works good. And shows all compilation errors on the terminal window.
But trying to log them all in a separate file does not work.

openfl test html5 >> log.txt

How to make it work so that all compilation errors log into a file?

PS: I checked openfl command has got an option called “trace” . But there is no other info about it.

Does this help?

Ok. Thanks.
I will try this and let you know.