Macro plumber_rs::plumber_log[][src]

macro_rules! plumber_log {
    (F $($arg:tt)*) => { ... };
    (E $($arg:tt)*) => { ... };
    (W $($arg:tt)*) => { ... };
    (N $($arg:tt)*) => { ... };
    (I $($arg:tt)*) => { ... };
    (T $($arg:tt)*) => { ... };
    (D $($arg:tt)*) => { ... };
}

Write a log message to the Plumber logging system. See the example code in the documentation of this module for the detailed usage of the macro

All the possible log messages:

  • F: Fatal
  • E: Error
  • W: Warnning
  • N: Notice
  • I: Information
  • T: Trace
  • D: Debug

Example code:

    plumber_log(E "This is a error message");
    plumber_log(N "This is a notice message");
    plumber_log(D "Debug message {}", "hello");
    //...