nice logger api improvement

This commit is contained in:
gabime 2014-03-31 02:24:58 +03:00
parent fff6d8f388
commit 36ef0732b3

View File

@ -21,7 +21,7 @@ int main(int argc, char* argv[])
const unsigned int howmany = argc <= 1 ? 1000000:atoi(argv[1]);
logger cout_logger ("", sinks::stdout_sink());
cout_logger.info() << "Hello " << "man" << 123 << " : " << 0.45f;
cout_logger.info() << "Hello " << "man" << 123;
cout_logger.info("This is very nice! ") << "Yes gabi.." << ":)";
auto fsink = std::make_shared<sinks::rotating_file_sink>("log", "txt", 1024*1024*50 , 5, 0);