Files
greptimedb/docs/how-to/how-to-change-log-level-on-the-fly.md
2025-05-12 12:12:47 +00:00

559 B

Change Log Level on the Fly

HTTP API

example:

curl --data "trace,flow=debug" 127.0.0.1:4000/debug/log_level

And database will reply with something like:

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 follows 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).