Commit f5caa00d authored by gabime's avatar gabime

bench with bigger log line

parent 3ccef969
......@@ -64,7 +64,7 @@ int main(int argc, char* argv[])
{
int counter = ++msg_counter;
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;
src::severity_logger_mt< severity_level > lg;
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;
}
......@@ -31,7 +31,7 @@ int main(int argc, char* argv[])
{
int counter = ++msg_counter;
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";
google::InitGoogleLogging(argv[0]);
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;
}
......@@ -33,7 +33,7 @@ int main(int argc, char* argv[])
{
int counter = ++msg_counter;
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");
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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment