From 6c16b6ce5cdda1c29aa1be216d998cc7058f725b 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 ccfdcf2f..237b5627 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -92,6 +92,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();