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

(flfr) #1

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

(Peter Niederwieser) #2

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.)