From 680f9160732d7d525cbf2cdf803310f1d75c62da Mon Sep 17 00:00:00 2001 From: luocai Date: Wed, 4 Sep 2024 12:28:49 +0800 Subject: [PATCH] add LOG_FORMAT. --- UnitTest/Universal/BoostLogTest.cpp | 1 + Universal/BoostLog.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/UnitTest/Universal/BoostLogTest.cpp b/UnitTest/Universal/BoostLogTest.cpp index c0e13ec..db90268 100644 --- a/UnitTest/Universal/BoostLogTest.cpp +++ b/UnitTest/Universal/BoostLogTest.cpp @@ -4,4 +4,5 @@ BOOST_AUTO_TEST_CASE(BoostLogTest) { boost::log::initialize(); LOG(info) << "this is a test output."; + LOG_FORMAT(info, "i am %s, %d years old.", "amass", 29); } \ No newline at end of file diff --git a/Universal/BoostLog.h b/Universal/BoostLog.h index 195fcf7..26ca617 100644 --- a/Universal/BoostLog.h +++ b/Universal/BoostLog.h @@ -216,6 +216,12 @@ BOOST_LOG_GLOBAL_LOGGER(location_logger, LocationLogger