mirror of https://github.com/Delgan/loguru.git
23 lines
341 B
Python
23 lines
341 B
Python
import sys
|
|
|
|
from loguru import logger
|
|
|
|
logger.remove()
|
|
logger.add(sys.stderr, format="", colorize=True, backtrace=False, diagnose=True)
|
|
|
|
|
|
class A:
|
|
def __repr__(self):
|
|
return "[[1, 2, 3]\n" " [4, 5, 6]\n" " [7, 8, 9]]"
|
|
|
|
|
|
def multiline():
|
|
a = b = A()
|
|
a + b
|
|
|
|
|
|
try:
|
|
multiline()
|
|
except TypeError:
|
|
logger.exception("")
|