From aefd4510c31a046409028870651a4943c16f5ad9 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Fri, 29 Mar 2024 20:24:21 +0300 Subject: [PATCH] Update README.md --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 96098993..eeea5189 100644 --- a/README.md +++ b/README.md @@ -197,13 +197,9 @@ It is a map of key-value pairs that can be set on a per-thread basis since it is ```c++ #include "spdlog/spdlog.h" #include "spdlog/mdc" -{ - spdlog::mdc::put("key1", "value1"); - spdlog::mdc::put("key2", "value2"); - // use the %& formatter flag to print all MDC values - spdlog::set_pattern("[%H:%M:%S %z] [%^%L%$] [%&] %v"); - spdlog::info("Some log message with context"); -} +... +spdlog::mdc::put("key1", "value1"); +spdlog::mdc::put("key2", "value2"); ``` ---