From 903bf2135de3e894cc0efb59122e7637a56e2c7e Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 26 Apr 2020 09:34:03 +0300 Subject: [PATCH] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4f872ca..64fe83c5 100644 --- a/README.md +++ b/README.md @@ -339,12 +339,11 @@ void android_example() --- #### Load log levels from env variable or from argv + ```c++ #include "spdlog/cfg/env.h" int main (int argc, char *argv[]) { - // Set the log level to "info" and mylogger to to "trace": - // SPDLOG_LEVEL=info,mylogger=trace && ./example spdlog::cfg::load_env_levels(); // or from command line: // ./example SPDLOG_LEVEL=info,mylogger=trace @@ -353,6 +352,10 @@ int main (int argc, char *argv[]) } ``` +```console +export SPDLOG_LEVEL=info,mylogger=trace && ./example +``` + --- ## Benchmarks