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