weblog is a crate that defines a set of macros for calling console.log()
, console.error()
and other members of the browser's console API when targeting Wasm.
web-sys
and stdweb
backends with an identical public API```toml
weblog = "0.1"
weblog = { version = "0.1", default-features = false, features = ["std_web"] } ```
See the documentation for usage examples.
The crate currently exposes the following macros:
console_clear!
console_debug!
console_dir!
console_dirxml!
console_error!
console_info!
console_log!
console_trace!
console_warn!
Licensed under MIT or Apache-2.