easylogging bench

This commit is contained in:
gabime
2014-12-20 18:57:01 +02:00
parent 7674bdb40a
commit b38a36451d
5 changed files with 90 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
#include "easylogging++.h"
_INITIALIZE_EASYLOGGINGPP
int main(int, char* [])
{
int howmany = 1000000;
// Load configuration from file
el::Configurations conf("easyl.conf");
el::Loggers::reconfigureLogger("default", conf);
for(int i = 0 ; i < howmany; ++i)
LOG(INFO) << "easylog message #" << i << ": This is some text for your pleasure";
return 0;
}