Compiler: refine console configuration levels and share with plugins#488
Compiler: refine console configuration levels and share with plugins#488chqrlie wants to merge 1 commit intoc2lang:masterfrom
Conversation
55987c2 to
5c5bc76
Compare
|
For tooling wrapping the compiler this makes it harder to automate tasks. I prefer that output is always the same, so that tooling can easily grep stuff. |
|
Fair enough... How about a command line option |
d383558 to
d2b51d5
Compare
108e1ad to
a6ec878
Compare
--terse option to disable logging messages
e1f9507 to
4adab9a
Compare
|
I've never seen 'terse' used, maybe use 'quiet'. In console, we already check console.debug() for some flag. Maybe this is in line with that, but it also suppresses console.log? Then we only need to check in one place. |
42f6671 to
d3ba44c
Compare
Actually the tester uses I changed the flag to |
--terse option to disable logging messages* add `-q` and `--quiet` c2c option to disable console.log messages * add `console.setQuiet` to disable `console.log` messages * collect console configuration in a `Config` object * pass console configuration to plugins * change quiet flag in tester from `-t` to `-q` (for consistency) * make `Makefile` rebuild targets and examples less verbose
-qand--quietc2c option to disable console.log messagesconsole.setQuietto disableconsole.logmessagesConfigobject-tto-q(for consistency)Makefilerebuild targets and examples less verbose