Crates.io | web-log |
lib.rs | web-log |
version | 1.0.1 |
source | src |
created_at | 2021-02-18 16:37:56.030402 |
updated_at | 2021-12-12 13:24:01.503984 |
description | Simple utilities to write into browser's console |
homepage | |
repository | https://github.com/DoumanAsh/web-log |
max_upload_size | |
id | 357122 |
size | 9,603 |
Minimal wrapper over browser console to provide printing facilities
std
- Enables std::io::Write
implementation.use web_log::{ConsoleType, Console};
use core::fmt::Write;
let mut writer = Console::new(ConsoleType::Info);
let _ = write!(writer, "Hellow World!");
drop(writer); //or writer.flush();
web_log::println!("Hello via macro!");
web_log::eprintln!("Error via macro!");