bench with bigger log line
This commit is contained in:
parent
3ccef96980
commit
f5caa00db7
@ -64,7 +64,7 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
int counter = ++msg_counter;
|
int counter = ++msg_counter;
|
||||||
if (counter > howmany) break;
|
if (counter > howmany) break;
|
||||||
BOOST_LOG_SEV(lg, info) << "Boost logger message #" << counter;
|
BOOST_LOG_SEV(lg, info) << "boost message #" << counter << ": This is some text for your pleasure";
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ int main(int argc, char* [])
|
|||||||
using namespace logging::trivial;
|
using namespace logging::trivial;
|
||||||
src::severity_logger_mt< severity_level > lg;
|
src::severity_logger_mt< severity_level > lg;
|
||||||
for(int i = 0 ; i < howmany; ++i)
|
for(int i = 0 ; i < howmany; ++i)
|
||||||
BOOST_LOG_SEV(lg, info) << "Boost logger message #" << i;
|
BOOST_LOG_SEV(lg, info) << "boost message #" << i << ": This is some text for your pleasure";
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
int counter = ++msg_counter;
|
int counter = ++msg_counter;
|
||||||
if (counter > howmany) break;
|
if (counter > howmany) break;
|
||||||
LOG(INFO) << "glog message # " << counter;
|
LOG(INFO) << "glog message #" << counter << ": This is some text for your pleasure";
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ int main(int, char* argv[])
|
|||||||
FLAGS_log_dir = "logs";
|
FLAGS_log_dir = "logs";
|
||||||
google::InitGoogleLogging(argv[0]);
|
google::InitGoogleLogging(argv[0]);
|
||||||
for(int i = 0 ; i < howmany; ++i)
|
for(int i = 0 ; i < howmany; ++i)
|
||||||
LOG(INFO) << "glog message # " << i;
|
LOG(INFO) << "glog message # " << i << ": This is some text for your pleasure";
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
int counter = ++msg_counter;
|
int counter = ++msg_counter;
|
||||||
if (counter > howmany) break;
|
if (counter > howmany) break;
|
||||||
logger->info() << "spdlog logger message #" << counter;
|
logger->info() << "spdlog message #" << counter << ": This is some text for your pleasure";
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ int main(int, char* [])
|
|||||||
|
|
||||||
logger->set_pattern("[%Y-%b-%d %T.%e]: %v");
|
logger->set_pattern("[%Y-%b-%d %T.%e]: %v");
|
||||||
for(int i = 0 ; i < howmany; ++i)
|
for(int i = 0 ; i < howmany; ++i)
|
||||||
logger->info() << "spdlogger message #" << i;
|
logger->info() << "spdlog message #" << i << ": This is some text for your pleasure";
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user