The cleanmymac.log
Module¶
-
cleanmymac.log.
LOGGER_NAME
= 'cleanmymac'¶ the main cleanmymac logger name
-
cleanmymac.log.
STR_LEVELS
= {'info': 20, 'warn': 30, 'critical': 50, 'error': 40, 'debug': 10, 'warning': 30}¶ string mapping for logging levels
-
cleanmymac.log.
debug_param
(msg, value, padding=30)[source]¶ helper method to debug parameter values, with alignment
Parameters:
-
cleanmymac.log.
disable_logger
(name)[source]¶ disable the given logger
Parameters: name – the name of the logger
-
cleanmymac.log.
echo
(msg)[source]¶ convenience method to display a message, the method relies on
click.echo()
Parameters: msg (str) – the message
-
cleanmymac.log.
echo_error
(msg, verbose=True)[source]¶ convenience method to display a message using the red ANSI color, the method relies on
click.secho()
Parameters:
-
cleanmymac.log.
echo_info
(msg, verbose=True)[source]¶ convenience method to display a message using the white ANSI color, the method relies on
click.secho()
Parameters:
-
cleanmymac.log.
echo_success
(msg, verbose=True, nl=True)[source]¶ convenience method to display a message using the green ANSI color, the method relies on
click.secho()
Parameters:
-
cleanmymac.log.
echo_target
(msg, verbose=True)[source]¶ convenience method to display a message using the blue ANSI color, the method relies on
click.secho()
Parameters:
-
cleanmymac.log.
echo_warn
(msg, verbose=True)[source]¶ convenience method to display a message using the yellow ANSI color, the method relies on
click.secho()
Parameters:
-
cleanmymac.log.
is_debug
()[source]¶ test if the
click_log.get_level()
is logging.DEBUGReturns: True if in debug mode Return type: bool