Added formatting arguments
This commit is contained in:
@@ -9,4 +9,11 @@ fn main() {
|
||||
logging_rs::error!(logger, "Error!");
|
||||
logging_rs::fatal!(logger, "Fatal error!");
|
||||
logging_rs::log!(logger, "Log message");
|
||||
|
||||
logging_rs::debug!(logger, "Debug message with {{more_info}}", "more_info" = "additional information");
|
||||
logging_rs::info!(logger, "Info and {{details}}", "details" = "more stuff");
|
||||
logging_rs::warn!(logger, "Warning: {{name}} is bad", "name" = "War");
|
||||
logging_rs::error!(logger, "Error! {{stuff}} went wrong", "stuff" = "Everything");
|
||||
logging_rs::fatal!(logger, "Fatal error! Code {{code}}", "code" = "404");
|
||||
logging_rs::log!(logger, "Log message and {{more}}", "more" = "more");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user