2 unstable releases

0.2.0 Sep 11, 2024
0.1.0 Sep 8, 2024

#566 in WebAssembly

31 downloads per month
Used in browser_tools

MIT license

14KB
285 lines

browser_log

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_log = "0.2"

Dependencies

~12MB
~213K SLoC