browser_log

Crates.iobrowser_log
lib.rsbrowser_log
version0.3.0
sourcesrc
created_at2024-09-08 19:27:12.705232
updated_at2024-10-28 10:57:31.520303
descriptionUtility to log in wasm/browser
homepage
repositoryhttps://github.com/Wandalen/cg_tools
max_upload_size
id1368478
size16,323
Wandalen (Wandalen)

documentation

README

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"
Commit count: 0

cargo fmt