Log level parameter type for Click
copied from cf-staging / click-loglevelclick-loglevel
provides a LogLevel
parameter type for use in Click
programs that wish to let the user set the logging level. It accepts all
of the logging
log level names (CRITICAL
, ERROR
, WARNING
, INFO
,
DEBUG
, and NOTSET
, all case insensitive), and converts them into their
corresponding numeric values. It also accepts integer values and leaves
them as-is. Custom log levels are also supported.