curved-television-6568
07/16/2021, 8:39 AMlogging
rather than Console
in rules.. ?
Examples:
https://github.com/pantsbuild/pants/blob/main/src/python/pants/core/goals/package.py#L103
https://github.com/pantsbuild/pants/blob/main/src/python/pants/core/goals/tailor.py#L495fast-nail-55400
07/16/2021, 12:47 PMlogging
would be more appropriate for debug/trace logs which would normally never be a part of a goalโs expected output.dependees
which outputs data about the project for the user. the console is used to dump that data while logging
would be used to emit info/debug/trace logs, none of which are that data.curved-television-6568
07/16/2021, 12:51 PMhappy-kitchen-89482
07/16/2021, 3:20 PMgoal_rules
can write to the Console ?hundreds-father-404
07/16/2021, 5:15 PM./pants fmt
or ./pants dependees
. Use logging when output is more of a side effect to explain the main thing, like "FYI we built this package and wrote it here"happy-kitchen-89482
07/16/2021, 5:46 PMcurved-television-6568
07/16/2021, 5:55 PMhundreds-father-404
07/16/2021, 5:59 PMcurved-television-6568
07/16/2021, 6:06 PMlevel
on your @rule
decorator.. (maybe it is in there already..)hundreds-father-404
07/16/2021, 6:12 PM