From 626704c9dd277ef96bfd80e63273a4919a505e7c Mon Sep 17 00:00:00 2001 From: Bailey Chittle Date: Thu, 22 Dec 2022 11:25:56 -0500 Subject: [PATCH] attribute example for testing purposes --- example/example.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/example/example.cpp b/example/example.cpp index 636a1be3..9cedfd53 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -94,6 +94,7 @@ int main(int, char *[]) // Apply some function on all registered loggers spdlog::apply_all([&](std::shared_ptr l) { l->info("End of example."); }); + spdlog::default_logger_raw()->log(spdlog::level::warn, "EXPERIMENTAL: log with attributes", {"attribute_key", "attribute value"}); // Release all spdlog resources, and drop all loggers in the registry. // This is optional (only mandatory if using windows + async log). spdlog::shutdown();