mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Fixed example
This commit is contained in:
parent
4fc59e3e7b
commit
b07069fb4d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user