Fixed example

This commit is contained in:
gabime 2018-07-07 15:27:17 +03:00
parent 4fc59e3e7b
commit b07069fb4d

View File

@ -59,11 +59,11 @@ int main(int, char *[])
void stdout_example()
{
// 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->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");
// Formatting examples