hobofan_stdweb_logger-0.1.1 doesn't have any documentation.
Crude logger implementation for the log crate for use with stdweb - No long-term maintenance intended!
This crate allows you to use the usual log macros from the log crate (info!, debug!, etc.) when working on a project involving stdweb.
The logger will then call the Javascript equivalent in the browser. E.g. info!("Hello World") => console.info("Hello World");.
Caveats
- Doesn't have module filtering (yet). If you turn the log level to
DebugorTraceand your dependencies also log a lot, your console will be very full.
Installation
Add this to your Cargo.toml dependencies:
= "0.1.1"
or run this if you have cargo-edit installed:
Usage
extern crate stdweb;
extern crate log;
extern crate hobofan_stdweb_logger as stdweb_logger;
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)