Send Log Output to different Destinations

This has to be the number one thing my team has tried to make Gradle do, and there seems to be no easy way to make it work under the current system. What we would like is a way that different levels of log output can be sent to different outputs.

For example: Debug (all) log output sent to file, while Info and higher logs are printed to std.out (to the console).

The reason being is it would be nice to be able to access debug logs without having to rebuild with the debug flag, but still have readable logs for day-to-day problems. This would also fit nicely with CI builds. (Console output simple to quickly identify problem, debug log available if needed for detailed debugging)

1 Like