kopia lustrzana https://github.com/micropython/micropython-lib
8 wiersze
279 B
Python
8 wiersze
279 B
Python
![]() |
import logging, sys
|
||
|
|
||
|
logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)
|
||
|
for handler in logging.getLogger().handlers:
|
||
|
handler.setFormatter(logging.Formatter("[%(levelname)s]:%(name)s:%(message)s"))
|
||
|
logging.info("hello upy")
|
||
|
logging.getLogger("child").info("hello 2")
|