nice logger api improvement

This commit is contained in:
gabime
2014-03-31 02:24:11 +03:00
parent 1a795a44de
commit fff6d8f388
2 changed files with 34 additions and 1 deletions

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 << " : " << 0.45f;
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);