SHARE
TWEET

Untitled

a guest Jan 18th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top