Skip to content

Commit

Permalink
chore: fix typos in change log level doc (#4948)
Browse files Browse the repository at this point in the history
chore: fix typos in change log level
  • Loading branch information
WenyXu authored Nov 6, 2024
1 parent ac387bd commit cccd25d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/how-to/how-to-change-log-level-on-the-fly.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

example:
```bash
curl --data "trace;flow=debug" 127.0.0.1:4000/debug/log_level
curl --data "trace,flow=debug" 127.0.0.1:4000/debug/log_level
```
And database will reply with something like:
```bash
Log Level changed from Some("info") to "trace;flow=debug"%
Log Level changed from Some("info") to "trace,flow=debug"%
```

The data is a string in the format of `global_level;module1=level1;module2=level2;...` that follow the same rule of `RUST_LOG`.
The data is a string in the format of `global_level,module1=level1,module2=level2,...` that follow the same rule of `RUST_LOG`.

The module is the module name of the log, and the level is the log level. The log level can be one of the following: `trace`, `debug`, `info`, `warn`, `error`, `off`(case insensitive).

0 comments on commit cccd25d

Please sign in to comment.