micropython-lib/logging/test_logging.py

7 wiersze
186 B
Python

import logging
logging.basicConfig(level=logging.INFO)
log = logging.getLogger("test")
log.debug("Test message: %d(%s)", 100, "foobar")
log.info("Test message2: %d(%s)", 100, "foobar")