Registry / logging / console-log

console-log

JSON →
library1.0.0rscratesunverified

A logging facility that routes Rust log messages to the browser's console.

# Cargo.toml [dependencies] console_log = "1.0.0"
INSTALL
IMPORT
SIG · CONSOLE-LOG
C
console-log
loggingrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

init_with_level
✓ use console_log::init_with_level;

Initialize console logging for WASM

use console_log::init_with_level; use log::Level; fn main() { init_with_level(Level::Debug).unwrap(); log::info!("Hello from WASM!"); }
Debug
Known issues
gotchaOnly works in WebAssembly targets (browser).
fix
Compile for wasm32-unknown-unknown target.
affects: >=0.0.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
49 hits · last 30 days
node
40
OpenAI (training)
1
Resources
console-log — cargo add console-log · libregistry