web-log

Crates.ioweb-log
lib.rsweb-log
version1.0.1
sourcesrc
created_at2021-02-18 16:37:56.030402
updated_at2021-12-12 13:24:01.503984
descriptionSimple utilities to write into browser's console
homepage
repositoryhttps://github.com/DoumanAsh/web-log
max_upload_size
id357122
size9,603
Douman (DoumanAsh)

documentation

README

web-log

Rust Crates.io Documentation

Minimal wrapper over browser console to provide printing facilities

Features:

  • std - Enables std::io::Write implementation.

Usage

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!");
Commit count: 2

cargo fmt