Logging
April 13, 2026 ยท View on GitHub
Auto-generated documentation for musicalgestures._logging module.
Logging configuration for MGT-python.
- Mgt-python / Modules / Musicalgestures / Logging
The library exposes a single logger named 'musicalgestures'. Users can
adjust verbosity at the application level
import logging
logging.getLogger('musicalgestures').setLevel(logging.DEBUG)
By default the logger has no handlers (quiet) so it does not interfere with
the host application's logging setup. A convenience :func:set_log_level
helper is provided for interactive / script use.
set_log_level
def set_log_level(level: int | str) -> None:
Set the verbosity of the musicalgestures logger.
Parameters
level:
A :mod:logging level constant (e.g. logging.DEBUG) or a
level name string (e.g. 'DEBUG', 'INFO', 'WARNING').
Examples
>>> import musicalgestures
>>> musicalgestures.set_log_level('DEBUG')