attribute example for testing purposes

pull/2595/head
Bailey Chittle 3 years ago
parent 07abdc6453
commit 6c16b6ce5c

@ -92,6 +92,7 @@ int main(int, char *[])
// Apply some function on all registered loggers
spdlog::apply_all([&](std::shared_ptr<spdlog::logger> 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();

Loading…
Cancel
Save