Logging¶
Logging configuration for MGT-python.
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 ¶
set_log_level(level)
Set the verbosity of the musicalgestures logger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
level
|
int | str
|
A :mod: |
required |
Examples:
>>> import musicalgestures
>>> musicalgestures.set_log_level('DEBUG')
Source code in musicalgestures/_logging.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |