Delgan
Delgan
Ok, too bad. Unfortunately I have no idea where the issue may come from. It's weird that the traceback reports `flush()` as failing and not `write()` (see [Colorama source code](https://github.com/tartley/colorama/blob/7a85efbc6d5b59665badb50b953d12390047b5f8/colorama/ansitowin32.py#L195-L196))....
Ok, glad you figured out a workaround and thanks for sharing it. ;) Too bad I can't investigate it. I'm thinking it can be related to this `pytest` issue but...
Hi @rudyryk. As you figured out, I think simply adding a Sentry [`EventHandler`](https://getsentry.github.io/sentry-python/integrations.html#sentry_sdk.integrations.logging.EventHandler) or [`BreadcrumbHandler`](https://getsentry.github.io/sentry-python/integrations.html#sentry_sdk.integrations.logging.BreadcrumbHandler) to the Loguru `logger` should work fine. Combining this with the `InterceptHandler()` ensure that logs...
Sorry, I'm not a Sentry user and consequently I'm not able to reproduce your problem. :( Would this be possible that events emitted by the `EventHandler()` would somehow be captured...
Indeed, it is very important that `loguru` and `sentry` can work together. From what I've seen, several people use both of them without any problem, though. If you have any...
Hi @Soures888. Did you encounter the same issue? Are you able to create a minimal reproducible example?
Hey @kbakk. Thanks for the reproducible example. This seems definitely related to how `logging` is configured by `sentry_sdk.init()`. I do not know what's happening under the hood, but it somehow...
Hi @sripathivenky. Sorry for being late to answer and thanks for taking of your time to improve Loguru. The idea to add a new `serializer` parameter has been discussed several...
Hi @fratambot, thanks for sharing a this code snippet! I'm not familiar with Sentry so it's hard for me to produce appropriate documentation. Your solution looks somehow similar to this...
Do you have any code snippet to share so I can try to reproduce it on my own computer please?