quackamollie.core.cli.helpers.logging module

quackamollie.core.cli.helpers.logging.callback_verbosity_count_to_logging_level(_, param, value) int[source]

Convert verbosity count from the option ‘–verbose’ to_logging_level.

Parameters:
  • _ – The current click context

  • param – The currently parsed parameter

  • value (int) – The number of ‘v’ appearing in the command line call (example: ‘-vvvv’ => 4) N.B: click option count=True ensures that this value is a positive integer

Returns:

A logging level value as defined in logging.__init__ (example: logging.DEBUG level is 10)

Return type:

int