At the moment there’s a lot of “clutter” in what is logged; it seems to all just use console.log which counts under the “info” category. And means anything the creator logs for their own “real” debugging is much harder to see–especially with more complex generators with many imports and nested imports.

If debug was used instead, the creator could choose to see all those things by turning on the “verbose” category in their dev tools. Or leave it off, and see the “info” channel with their own logs very easy to see and much more useful.

  • BluePower
    link
    English
    228 days ago

    console.debug()? Hmm, never heard of this before. Thanks to this post I immediately learnt what it does.

    I am unlocking many new JavaScript capabilities this month! 😄

    • @[email protected]OP
      link
      fedilink
      English
      228 days ago

      Yeah interesting isn’t it? I knew there was this “verbose” category but not what counted as it.

      There’s also console.info() you can use to explicitly send to the “info” category. And console.warn(), and console.error().