From 76c5ae913c66959bb5beb884d0c086e68cd44550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ag=C3=BCero?= Date: Thu, 26 Sep 2024 19:55:39 +0200 Subject: [PATCH] Tweak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Agüero --- examples/log/main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/log/main.cc b/examples/log/main.cc index 6b33617..7aee2df 100644 --- a/examples/log/main.cc +++ b/examples/log/main.cc @@ -27,6 +27,7 @@ int main(int argc, char** argv) std::filesystem::path logDir = std::filesystem::temp_directory_path(); std::filesystem::path logFile = "my_log.txt"; std::filesystem::path logPath = logDir / logFile; + logger.SetLogDestination(logPath); SPDLOG_LOGGER_TRACE(logger.RawLoggerPtr(), "trace\n");