mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
nice logger api improvement
This commit is contained in:
parent
fff6d8f388
commit
36ef0732b3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user