mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
continue with cppformatter integration
This commit is contained in:
@@ -18,7 +18,7 @@ int main(int argc, char* argv[])
|
||||
|
||||
namespace spd = spdlog;
|
||||
///Create a file rotating logger with 5mb size max and 5 rotated files
|
||||
auto logger = spd::rotating_logger_mt("file_logger", "logs/spd-sample", 10 *1024 * 1024 , 5);
|
||||
auto logger = spd::rotating_logger_mt("file_logger", "logs/spd-sample", 10 *1024 * 1024 , 5, false);
|
||||
|
||||
logger->set_pattern("[%Y-%b-%d %T.%e]: %v");
|
||||
|
||||
|
Reference in New Issue
Block a user