diff --git a/README.md b/README.md index 1e36b834..c4f872ca 100644 --- a/README.md +++ b/README.md @@ -341,7 +341,7 @@ void android_example() #### Load log levels from env variable or from argv ```c++ #include "spdlog/cfg/env.h" -void load_levels_example() +int main (int argc, char *argv[]) { // Set the log level to "info" and mylogger to to "trace": // SPDLOG_LEVEL=info,mylogger=trace && ./example