Open EchoShoot opened 3 months ago
You need to replace the default sink
.
logger.remove()
logger.add(sink=sys.stdout, level="DEBUG")
The level()
method is only used to retrieve, modify or add a log level usable by the logger.log()
.
As indicated by @destin-v, if you want to change the default handler, simply replace it by a new one with the threshold level you desire.
Python 3.11.8, my code is
the print is
Why does DEBUG and INFO display?