logging¶
Logging configuration for pre-commit-snippets.
logging ¶
Logging configuration for pre-commit-snippets.
This module provides a centralized logger and configuration function for the package. It supports three verbosity levels: WARNING (default), INFO (--verbose), and DEBUG (--debug).
setup_logging(verbose=False, debug=False) ¶
Configure logging for the application.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
verbose | bool | If True, set level to INFO. | False |
debug | bool | If True, set level to DEBUG (overrides verbose). | False |