mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-08-30 00:30:11 +00:00
14 lines
304 B
Python
14 lines
304 B
Python
import logging
|
|
|
|
#logging.basicConfig(level=logging.CRITICAL,
|
|
logging.basicConfig(level=logging.DEBUG,
|
|
format='[%(levelname)s] %(message)s')
|
|
|
|
|
|
def debug_enable():
|
|
logging.getLogger().setLevel(logging.DEBUG)
|
|
|
|
|
|
def debug_disable():
|
|
logging.getLogger().setLevel(logging.CRITICAL)
|