Take a look here. It should be:
yourcommand &> filename
It redirects both standard output and standard error to file filename.
2.1m questions
2.1m answers
60 comments
57.0k users