This commit is contained in:
gabi
2014-11-05 23:16:24 +02:00
parent a66d80c1d4
commit 35c71f4d7b
7 changed files with 0 additions and 0 deletions

17
bench/spdlog-bench.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "spdlog/spdlog.h"
int main(int argc, char* [])
{
int howmany = 1000000;
namespace spd = spdlog;
///Create a file rotating logger with 5mb size max and 3 rotated files
auto logger = spd::rotating_logger_mt("file_logger", "logs/spd-sample", 10 *1024 * 1024 , 5);
logger->set_pattern("[%Y-%b-%d %T.%e]: %v");
for(int i = 0 ; i < howmany; ++i)
logger->info() << "spdlogger message #" << i;
return 0;
}