You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/bench/easylogging-bench.cpp

22 lines
501 B
C++

10 years ago
//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
11 years ago
#include "easylogging++.h"
_INITIALIZE_EASYLOGGINGPP
11 years ago
8 years ago
int main(int, char *[])
11 years ago
{
11 years ago
int howmany = 1000000;
11 years ago
11 years ago
// Load configuration from file
el::Configurations conf("easyl.conf");
el::Loggers::reconfigureLogger("default", conf);
11 years ago
8 years ago
for (int i = 0; i < howmany; ++i)
11 years ago
LOG(INFO) << "easylog message #" << i << ": This is some text for your pleasure";
return 0;
11 years ago
}