#log #log-messages #wasm-browser

browser_tools

Utility to log in wasm/browser

1 unstable release

0.2.0 Sep 11, 2024

#424 in WebAssembly

Download history 177/week @ 2024-09-05 171/week @ 2024-09-12 7/week @ 2024-09-19 6/week @ 2024-09-26 2/week @ 2024-10-03

363 downloads per month

MIT license

17KB
293 lines

browser_tools

Utility to log in wasm/browser.

Logging

It integrates with JavaScript's console API to output log messages with varying levels of severity, enhancing the visibility and management of log data in web environments.

Panic Handling Mechanism

Also this crate provides a debugging utility for Rust applications compiled to WebAssembly (wasm32-unknown-unknown). It redirects panic messages to JavaScript's console.error, enhancing error visibility in web browsers and Node.js environments.

Installation

Add the following to your Cargo.toml:

[dependencies]
browser_tools = "0.2"

Dependencies

~12MB
~212K SLoC