isographlabs / isograph

The UI framework for teams that move fast — without breaking things.
MIT License
245 stars 16 forks source link

add tracing #246

Closed ch1ffa closed 1 week ago

ch1ffa commented 1 week ago

Closes #239

This PR adds tracing to the compiler and exposes its LevelFilter enum as --log-level parameter with possible values: trace, debug, info, warn, error, off.

It can be later configured to measure spans duration or export data in various formats if needed.

Now we can use debug! or trace! macros to provide additional diagnostics.