quickjs-rs
quickjs-rs copied to clipboard
Add full logging example
Using
let ctx = Context::builder().console(quick_js::console::LogConsole).build()?;
and later I evaluate some code that uses console.log
, the code will run but nothing will be printed.
Hey.
The provided logger uses the log crate, which doesn't print anything by default.
You will have to enable a logging backend.
env-logger is a popular choice.
We should probably add a full example that demonstrates logging.