mirror of https://github.com/Delgan/loguru.git
16 lines
345 B
Python
16 lines
345 B
Python
from loguru import logger
|
|
import sys
|
|
|
|
|
|
@logger.catch
|
|
def main():
|
|
errors = [ValueError(i) for i in range(100)]
|
|
raise ExceptionGroup("group", errors)
|
|
|
|
|
|
logger.remove()
|
|
logger.add(sys.stderr, format="", diagnose=False, backtrace=False, colorize=False)
|
|
logger.add(sys.stderr, format="", diagnose=True, backtrace=True, colorize=True)
|
|
|
|
main()
|