Closed Ayc0 closed 2 years ago
You can set enableCapture: true
to have Clipanion redirect console.*
to the correct streams
https://mael.dev/clipanion/docs/contexts
https://github.com/arcanis/clipanion/pull/103
That's sweet! I didn't know that.
Do you think we should add a link to this page, or say something like "We also recommend you to enable enableCapture: true
if you want to still use console.log
" in this help box?
The doc seems to be recommending to use
this.context.stdout.write
instead ofconsole.log
:But those 2 don't do exactly the same things:
console.log
stdout.write
Here there a plan to include a fully compatible
console
(likethis.context.console
) that would work with clipanion and that would be 100% compatible with theconsole.*
APIs?