Unverified Commit 903bf213 authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Update README.md

parent 1f732585
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment