From 00a7f5d75d289060464575c6506248cea3e5b103 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 27 Jan 2019 19:10:34 +0200 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 48264324..55eaeba6 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,10 @@ int main() // define SPDLOG_ACTIVE_LEVEL to desired level SPDLOG_TRACE("Some trace message with param {}", {}); SPDLOG_DEBUG("Some debug message"); - + + // Set the default logger to file logger + auto file_logger = spdlog::basic_logger_mt("basic_logger", "logs/basic.txt"); + spdlog::set_default_logger(file_logger); } ``` #### create stdout/stderr logger object