Capture stdout/stderr to file


(Klaus Christiansen) #1

Is it possible to capture stdout and/or stderr and save it to a file?
I would like to create a logfile from stdout/stderr.


(Chris Doré) #2

You can create your own implementation of StandardOutputListener and use project.gradle.addListener(yourListener) to register it.