Logo
Explore Help
Sign In
CyberMages/scribe
1
0
Fork 0
You've already forked scribe
Code Issues 2 Pull Requests Actions Packages Projects Releases Wiki Activity
scribe/examples/logging.rs

13 lines
206 B
Rust
Raw Normal View History

Turned this into a basic and simple logging system for now. Currently the library will handle using the log macros to directly call println!(). Later this can be set to actually log the errors.
2016-01-10 04:24:31 -05:00
#[macro_use]
extern crate scribe;
pub fn main()
{
debug!("This seemed to work alright.");
Error logging now generates a panic. This means that the error macro must be called last in the example.
2016-01-28 14:15:21 -05:00
info!("Jason is awesome.");
warn!("Danger Will Robinson, danger!");
error!("There was an error!");
Turned this into a basic and simple logging system for now. Currently the library will handle using the log macros to directly call println!(). Later this can be set to actually log the errors.
2016-01-10 04:24:31 -05:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.3 Page: 510ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API