Changeset View
Changeset View
Standalone View
Standalone View
swh/core/cli/__init__.py
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | @click.option( | ||||
"-l", | "-l", | ||||
"log_levels", | "log_levels", | ||||
default=None, | default=None, | ||||
callback=validate_loglevel_params, | callback=validate_loglevel_params, | ||||
multiple=True, | multiple=True, | ||||
help=( | help=( | ||||
"Log level (defaults to INFO). " | "Log level (defaults to INFO). " | ||||
"Can override the log level for a specific module, by using the " | "Can override the log level for a specific module, by using the " | ||||
"`specific.module:LOGLEVEL` syntax (e.g. `--log-level swh.core:DEBUG` " | "``specific.module:LOGLEVEL`` syntax (e.g. ``--log-level swh.core:DEBUG`` " | ||||
"will enable DEBUG logging for swh.core)." | "will enable DEBUG logging for swh.core)." | ||||
), | ), | ||||
) | ) | ||||
@click.option( | @click.option( | ||||
"--log-config", | "--log-config", | ||||
default=None, | default=None, | ||||
type=click.File("r"), | type=click.File("r"), | ||||
help="Python yaml logging configuration file.", | help="Python yaml logging configuration file.", | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |