Guest User

Untitled

a guest
Jan 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #[macro_use]
  2. extern crate log;
  3.  
  4. fn main() {
  5. info!(target: "yak_events", "Commencing yak shaving ");
  6. log!(log::WARN, "this is a warning {}", "message");
  7. log!(log::DEBUG, "this is a debug message");
  8. log!(6, "this is a custom logging level: {level}", level=6);
  9. }
Add Comment
Please, Sign In to add comment