From d352aa0990493e66cc659cfc023f8e2f5e35968f Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 9 Apr 2018 15:11:42 +0300 Subject: [PATCH] Fixed example --- example/example.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index a55a7db6..0597ec75 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -26,17 +26,8 @@ int main(int, char *[]) { try { - spdlog::set_async_mode(1024); // Console logger with color auto console = spd::stdout_color_mt("console"); - - for (int i = 0; i < 2000; i++) - { - console->info("{} Hello thread pool!", i); - } - - return 0; - console->info("Welcome to spdlog!"); console->error("Some error message with arg{}..", 1); @@ -48,7 +39,6 @@ int main(int, char *[]) console->info("{:<30}", "left aligned"); spd::get("console")->info("loggers can be retrieved from a global registry using the spdlog::get(logger_name) function"); - return 0; // Create basic file logger (not rotated) auto my_logger = spd::basic_logger_mt("basic_logger", "logs/basic-log.txt");