Update README.md

This commit is contained in:
Gabi Melman 2020-03-06 15:33:24 +02:00 committed by GitHub
parent 52aed9e0de
commit 84851e230f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ int main()
} }
``` ```
#### load log levels from env variable or from argv #### Load log levels from env variable or from argv
```c++ ```c++
#include "spdlog/cfg/env.h" #include "spdlog/cfg/env.h"
void load_levels_example() void load_levels_example()
@ -102,7 +102,7 @@ void load_levels_example()
// spdlog::cfg::load_argv_levels(args, argv); // spdlog::cfg::load_argv_levels(args, argv);
} }
``` ```
#### create stdout/stderr logger object #### Create stdout/stderr logger object
```c++ ```c++
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
#include "spdlog/sinks/stdout_color_sinks.h" #include "spdlog/sinks/stdout_color_sinks.h"