This commit is contained in:
gabime 2014-01-27 13:07:57 +02:00
parent 57cd630dc7
commit 0168bf3f51

View File

@ -17,13 +17,13 @@ int main(int argc, char* argv[])
auto null_sink = std::make_shared<c11log::sinks::null_sink>();
auto stdout_sink = std::make_shared<c11log::sinks::stdout_sink>();
auto async = std::make_shared<c11log::sinks::async_sink>(100);
auto fsink = std::make_shared<c11log::sinks::rotating_file_sink>("newlog", "txt", 1024*1024*10 , 2);
//auto fsink = std::make_shared<c11log::sinks::rotating_file_sink>("newlog", "txt", 1024*1024*10 , 2);
auto fsink = std::make_shared<c11log::sinks::midnight_file_sink>("midnight", "txt");
async->add_sink(null_sink);
async->add_sink(fsink);
c11log::logger logger("test");
logger.add_sink(async);
std::atomic<uint32_t> counter { 0 };
auto counter_ptr = &counter;