From b18d235b639977787b15d4e5899bcdb102a20a19 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sat, 3 Sep 2016 14:08:55 +0300 Subject: [PATCH] Update spdlog.h --- include/spdlog/spdlog.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 495f72d0..31b66eb9 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -20,15 +20,13 @@ namespace spdlog { +// // Return an existing logger or nullptr if a logger with such name doesn't exist. -// Examples: +// example: spdlog::get("my_logger")->info("hello {}", "world"); // -// spdlog::get("mylog")->info("Hello"); -// auto logger = spdlog::get("mylog"); -// logger.info("This is another message" , x, y, z); -// logger.info() << "This is another message" << x << y << z; std::shared_ptr get(const std::string& name); + // // Set global formatting // example: spdlog::set_pattern("%Y-%m-%d %H:%M:%S.%e %l : %v");