mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
static one_hour
This commit is contained in:
@@ -54,10 +54,10 @@ int main(int argc, char* argv[])
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
auto fsink2 = std::make_shared<sinks::rotating_file_sink>("log", "txt", 1024*1024*50 , 5, seconds(1));
|
||||
//auto fsink2 = std::make_shared<sinks::rotating_file_sink>("log", "txt", 1024*1024*50 , 5, seconds(1));
|
||||
auto &logger2 = c11log::get_logger("logger2");
|
||||
logger2.add_sink(fsink2);
|
||||
//logger2.add_sink(std::make_shared<sinks::null_sink>());
|
||||
//logger2.add_sink(fsink2);
|
||||
logger2.add_sink(std::make_shared<sinks::null_sink>());
|
||||
|
||||
auto start = system_clock::now();
|
||||
const unsigned int howmany = 10000000;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
CXX = ccache g++
|
||||
CXX = g++
|
||||
CXXFLAGS = -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -I../include
|
||||
CXX_RELEASE_FLAGS = -O3 -flto
|
||||
CXX_DEBUG_FLAGS= -g
|
||||
|
Reference in New Issue
Block a user