Skip to content

Compiler: refine console configuration levels and share with plugins#488

Open
chqrlie wants to merge 1 commit intoc2lang:masterfrom
chqrlie:terse-output
Open

Compiler: refine console configuration levels and share with plugins#488
chqrlie wants to merge 1 commit intoc2lang:masterfrom
chqrlie:terse-output

Conversation

@chqrlie
Copy link
Copy Markdown
Contributor

@chqrlie chqrlie commented Apr 4, 2026

  • 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

@chqrlie chqrlie force-pushed the terse-output branch 3 times, most recently from 55987c2 to 5c5bc76 Compare April 9, 2026 14:50
@bvdberg
Copy link
Copy Markdown
Member

bvdberg commented Apr 11, 2026

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.

@chqrlie
Copy link
Copy Markdown
Contributor Author

chqrlie commented Apr 11, 2026

Fair enough... How about a command line option --terse that prevents the output of building xxx?

@chqrlie chqrlie force-pushed the terse-output branch 11 times, most recently from d383558 to d2b51d5 Compare April 16, 2026 07:37
@chqrlie chqrlie force-pushed the terse-output branch 11 times, most recently from 108e1ad to a6ec878 Compare April 26, 2026 15:56
@chqrlie chqrlie changed the title Compiler: reduce compiler output verbosity Compiler: add --terse option to disable logging messages Apr 26, 2026
@chqrlie chqrlie force-pushed the terse-output branch 2 times, most recently from e1f9507 to 4adab9a Compare April 29, 2026 11:12
@bvdberg
Copy link
Copy Markdown
Member

bvdberg commented Apr 29, 2026

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.

@chqrlie chqrlie force-pushed the terse-output branch 3 times, most recently from 42f6671 to d3ba44c Compare May 3, 2026 21:59
@chqrlie
Copy link
Copy Markdown
Contributor Author

chqrlie commented May 3, 2026

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.

Actually the tester uses -t, described as terse mode...

I changed the flag to -q / --quiet and grouped the console configuration flags in a console.Config object shared with the plugins. The color customization could be stored there too later.

@chqrlie chqrlie changed the title Compiler: add --terse option to disable logging messages Compiler: refine console configuration levels and share with plugins May 3, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants