Commit 0168bf3f authored by gabime's avatar gabime

fix

parent 57cd630d
...@@ -17,13 +17,13 @@ int main(int argc, char* argv[]) ...@@ -17,13 +17,13 @@ int main(int argc, char* argv[])
auto null_sink = std::make_shared<c11log::sinks::null_sink>(); auto null_sink = std::make_shared<c11log::sinks::null_sink>();
auto stdout_sink = std::make_shared<c11log::sinks::stdout_sink>(); auto stdout_sink = std::make_shared<c11log::sinks::stdout_sink>();
auto async = std::make_shared<c11log::sinks::async_sink>(100); 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"); c11log::logger logger("test");
logger.add_sink(async); logger.add_sink(async);
std::atomic<uint32_t> counter { 0 }; std::atomic<uint32_t> counter { 0 };
auto counter_ptr = &counter; auto counter_ptr = &counter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment