How do I direct log output into a file (other than by redirecting stdout)?

ant has a -logfile option, is there a similar option for gradle?

There is no such command line option in Gradle. I’m not aware of a solution other than redirecting stdout. (I don’t think that ‘System.setOut(…)’ is going to work.)