From: Simon Marchi Date: Thu, 15 Apr 2021 02:28:07 +0000 (-0400) Subject: lttng add-trigger: replace log level options with --log-level X-Git-Tag: v2.13.0-rc1~41 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=949f049bd7bd19725768d46e349178c7c0da12a7;hp=949f049bd7bd19725768d46e349178c7c0da12a7 lttng add-trigger: replace log level options with --log-level Implement the proposal to replace the --loglevel and --loglevel-only options with a single --log-level option. The syntax of the argument to --log-level is: - `LEVEL`: to specify only this level - `LEVEL..`: to specify from this level up to the most critical level - `..`: to specify any level. Basically the same as no `--log-level` option. The intent is to keep the door open to fully support ranges with the `LEVEL1..LEVEL2` syntax. The loglevel_parse_range_string function and friends are implement this, but their caller in add_trigger.c, parse_log_level_string, artificially restricts it to the two cases shown above. Change-Id: Id8607b3dae2db5aace263f0c56ada2e822db907c Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau ---