Crate web_log[−][src]
Expand description
Minimal wrapper over browser console to provide printing facilities
Features:
std
- Enablesstd::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!");
Macros
eprintln
alternative to write message with ERROR priority.
println
alternative to write message with INFO priority.
Structs
Wrapper over browser’s console
Enums
Specifies method of writing into console.