3 releases (breaking)

0.3.0 Oct 28, 2024
0.2.0 Sep 11, 2024
0.1.0 Sep 8, 2024

#535 in WebAssembly

Download history 151/week @ 2024-09-03 385/week @ 2024-09-10 16/week @ 2024-09-17 7/week @ 2024-09-24 12/week @ 2024-10-01 4/week @ 2024-10-08 6/week @ 2024-10-15 95/week @ 2024-10-22 62/week @ 2024-10-29 25/week @ 2024-11-05

192 downloads per month
Used in 2 crates

MIT license

15KB
327 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
~212K SLoC