Delgan
Delgan
So, I was able to reproduce the issue using a Jupyter notebook. I can't tell if this is related to the problem you're facing in production. This happens due to...
Though, it's very curious that this only happens with Jupyter. Maybe it's worth asking one of the developers.
The stack trace formatting depends on the `backtrace` parameter of your sink (it defaults to `True`). Does `logger.add(sys.stderr, backtrace=False)` produces the expected output?
I don't think it's related to this statement in the changelog. Did you try also with `diagnose=False`? On my computer it works as expected: ```python from loguru import logger import...
Okay, sorry, I get it! Indeed, it is not possible to completely remove the stacktrace with `logger.catch()`. You implemented a custom context manager and that's the best thing to do...
Hey @lobotmcj, thanks for describing your concerns and suggesting a possible improvements to Loguru. :+1: I agree that the `diagnose` parameter loses much of its utility in cases like this....
Hi @pfmoore. Can you please share an example of the output you expect from your sink? It's possible to use a custom `format` function if one needs to deal with...
Hi @oppressed-artist. For now, this is unfortunately not possible. Color tags are stripped away for technical and practical reasons. However, in the future I would like to allow to configure...
Hi @jupiterbjy, thanks for bringing this up. I knew `trio` but never tried it with Loguru and didn't now both libraries weren't compatible. Trio is a quite popular alternative to...
According to the traceback this seems related to Colorama. It looks like the stream handler (converting ansi code to terminal colors) is somehow closed while Loguru still needs to use...