Added formatting arguments

This commit is contained in:
ElBe
2023-11-27 21:00:19 +01:00
parent 50ac89f3b0
commit 6a6fa0e247
5 changed files with 108 additions and 50 deletions
+7
View File
@@ -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");
}