diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..ee4b58d --- /dev/null +++ b/ChangeLog @@ -0,0 +1,3 @@ +2014-08-03 yedongfu dongfuye@163.com + * start to work + * version 0.1.0 \ No newline at end of file diff --git a/examples/log-bench.cc b/examples/log-bench.cc index 0eb011f..4b73fd6 100644 --- a/examples/log-bench.cc +++ b/examples/log-bench.cc @@ -8,8 +8,12 @@ using namespace handy; int main(int argc, const char* argv[]) { - Logger::getLogger().setFileName("/dev/null"); - //Logger::getLogger().setRotateInterval(60); + const char* filename = "/dev/null"; + if (argc > 1) { + filename = argv[1]; + } + Logger::getLogger().setFileName(filename); + Logger::getLogger().setRotateInterval(60); time_t last = time(NULL); long cn = 0, lastcn = 0; for(;;) {