Commit b07069fb authored by gabime's avatar gabime

Fixed example

parent 4fc59e3e
...@@ -59,11 +59,11 @@ int main(int, char *[]) ...@@ -59,11 +59,11 @@ int main(int, char *[])
void stdout_example() void stdout_example()
{ {
// create color multi threaded logger // create color multi threaded logger
auto console = spdlog::stdout_logger_mt("console"); auto console = spdlog::stdout_color_mt("console");
console->info("Welcome to spdlog!"); console->info("Welcome to spdlog!");
console->error("Some error message with arg: {}", 1); console->error("Some error message with arg: {}", 1);
auto err_logger = spdlog::stderr_logger_mt("error_logger"); auto err_logger = spdlog::stderr_color_mt("error_logger");
err_logger->error("Some error message"); err_logger->error("Some error message");
// Formatting examples // Formatting examples
......
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