jabel
jabel copied to clipboard
Support for muting the feature set being sent to standard output on init
I love jabel so far, and have been gleefully sprinkling var throughout my code. It does, however, rather severely increase the verbosity of large multi-project builds. It would be nice if we could ask via a flag or other mechanism to disable to infodump during init. It would let me see my errors again. ;)
There are a few options, the most gradley(?) way would probably be to use the log level to choose whether or not to report it.
Hi @ekmett,
I must admit my decision to use STDOUT is... questionable indeed :D I will make it use the standard logger of the compiler, so that it will follow the rules applied to javac itself.
Thanks for reminding me about it! 👍
Took a crack at it, but can't seem to hook into the proper logging system still...
How about replacing System.out
with a reference to a class field PrintStream out
that by default points to System.out
. In the gradle plugin you could have a verbosity flag. If set to false pipe it into a null stream https://stackoverflow.com/questions/691813/is-there-a-null-outputstream-in-java