diff --git a/example/example.cpp b/example/example.cpp index f81af788..49398ad3 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -136,11 +136,11 @@ void callback_example() }); } -#include "spdlog/cfg/env.h" void load_levels_example() { // Set the log level to "info" and mylogger to "trace": // SPDLOG_LEVEL=info,mylogger=trace && ./example + // must #include "spdlog/cfg/env.h" spdlog::cfg::load_env_levels(); // or from command line: // ./example SPDLOG_LEVEL=info,mylogger=trace