Last active 1728456097

upip permet de télécharger des lib directement sur le composant qui gère le micropython

basic.py Raw
1import logging
2logging.basicConfig(level=logging.DEBUG)
classic.py Raw
1import logging
2# https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library
3logging.getLogger('foo').addHandler(logging.NullHandler())
4logger = logging.getLogger(__name__)
5logger.debug('This is a test log message.')
6
7import logging
8logging.basicConfig(level=logging.DEBUG)
upip.py Raw
1import upip
2upip.install(logging)